Skip to content

Instantly share code, notes, and snippets.

View faelplg's full-sized avatar
💭
The end of the world is near. ☄️

Rafael Goulart faelplg

💭
The end of the world is near. ☄️
View GitHub Profile
////
/// @group base
/// @author faelplg
////
$phone_only: 599px;
$tablet_portrait_min: 600px;
$tablet_portrait_max: 899px;
$tablet_landscape_min: 900px;
$tablet_landscape_max: 1199px;
@faelplg
faelplg / complete_es6_angularjs_index.js
Last active December 2, 2019 02:36
Complete index.js for templating purposes
/**
* @file index.js
* @desc Main index of the application.
*/
/** HACK: Use this to force hot reload of the index.html file in some environments. */
/** NOTE: Only for development environments. */
// import './index.html';
/** AngularJS main packages */
@faelplg
faelplg / advanced_index.html
Created October 1, 2018 00:52
Advanced index.html structure.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>HTML- Basic file</title>
<!-- Recommended favicon format -->
<!-- For IE 10 and below -->
<!-- Place favicon.ico in the root directory - no tag necessary -->
@faelplg
faelplg / es6_index.js
Last active October 2, 2018 05:19
An index.js file using ES6 arrow function.
class Generator {
createParagraph(__string) {
const textNode = document.createTextNode(__string);
const paragraphElement = document.createElement('P');
paragraphElement.appendChild(textNode);
return paragraphElement;
}
createDiv(__innerNode) {
const divElement = document.createElement('DIV');
@faelplg
faelplg / .eslintrc.json
Created September 27, 2018 22:06
My ESLint settings.
{
"env": {
"browser": true,
"commonjs": true,
"es6": true,
"node": true
},
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": 2018,
@faelplg
faelplg / index.html
Last active October 2, 2018 05:18
Basic HTML file structure.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>HTML- Basic file</title>
<meta name="description" content="Basic HTML file structure.">
<meta name="author" content="someone">
</head>
@faelplg
faelplg / index.js
Last active October 2, 2018 05:21
Basic script Hello, Cindy!
function generateComponent() {
const element__ = document.createElement('DIV');
element__.className = 'container';
const paragraph = document.createElement('P');
const txt = document.createTextNode('Boo! ƪ(ړײ)ƪ');
paragraph.appendChild(txt);
element__.appendChild(paragraph);