This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
s |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% macro list(items, class) %} | |
<ul class="{{class}}"> | |
{# Iterating over each direct items #} | |
{% for item in items %} | |
<li> | |
<a href="">{{item.name}}</a> | |
{# If an item has children #} | |
{% if item.children %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
php -S localhost:3000 -t ./ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Drupal 8 default modules setup | |
drush dl admin_toolbar field_collection conditional_fields devel ctools image_widget_crop crop pathauto token module_filter simple_sitemap linkit focal_point features config_update replicate replicate_ui search_kint seo_checklist lazyloader image_popup checklistapi vardumper twig_tweak google_analytics google_analytics_report metatag |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const path = require( 'path' ) | |
module.exports = { | |
components: 'src/**/*.component.js', // use this file extension to filter components | |
require: [ | |
path.join( __dirname, 'styleguide.js' ), // Custom js for styleguide | |
'bootstrap/dist/css/bootstrap.css' // Custom css for styleguide | |
], | |
styles: { | |
Playground: { // for component PlaygroundRenderer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ps ax | grep mongod | |
kill -2 <processId> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body:after { | |
content: 'xs'; | |
display: block; | |
padding: 5px 10px; | |
position: fixed; | |
z-index: 9999; | |
right: 0; | |
top: 0; | |
color: black; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* debounce | |
* Ensures a function won't be called before a defined amout of time | |
* Ex: | |
* on window resize, ensure a function won't be called | |
* until the user stopped resizing window for {time param} | |
* | |
* @param { function } fn Callback to be executed after debounce | |
* @param { int } time Time to wait before function execution | |
* @return {function(...[*])} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* NPM dependencies to install | |
* (npm i -D gulp gulp-sass ... ) | |
*/ | |
const gulp = require( "gulp" ), | |
path = require( "path" ), | |
sass = require( "gulp-sass" ), | |
sourcemaps = require( "gulp-sourcemaps" ), | |
autoprefixer = require( "gulp-autoprefixer" ), | |
browserSync = require( "browser-sync" ).create() // Local server |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Timer* | |
Idle* | |
start->Running | |
Running | |
reset->Idle | |
tick-> SpecifiedTimeElapsed? | |
# Transient state define system’s logic without dropping into code | |
SpecifiedTimeElapsed? |
OlderNewer