Skip to content

Instantly share code, notes, and snippets.

View fajaryanw's full-sized avatar
🏠
Working from home

fajaryanw

🏠
Working from home
View GitHub Profile
@fajaryanw
fajaryanw / byobuCommands
Created September 12, 2017 07:18 — forked from jshaw/byobuCommands
Byobu Commands
Byobu Commands
==============
byobu Screen manager
Level 0 Commands (Quick Start)
------------------------------
<F2> Create a new window
@fajaryanw
fajaryanw / uniqueId.adoc
Created July 9, 2017 02:37 — forked from tekiegirl/uniqueId.adoc
Using the graph to control unique id generation.

Using the graph to control unique id generation

Introduction

This gist was prompted by Nigel Small’s tweet of a query to generate a unique id for a node (and is posted here with his agreement). It inspired me to think about how it could be used in a full example, unrestricted by Twitter’s 140 characters. I have also looked at how we could generate different sets of unique ids for different labels.

Auto-incrementing #Neo4j counter MERGE (x:Counter {name:'foo'}) ON CREATE SET x.count = 0 ON MATCH SET x.count = x.count + 1 RETURN x.count

— Nigel Small (@technige) December 16, 2013
@fajaryanw
fajaryanw / quasar.standalone.js
Created March 10, 2017 10:53
Quasar Standalone JS
/*!
* Quasar Framework v0.13.3
* (c) 2017 Razvan Stoenescu
* Released under the MIT License.
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('moment'), require('fastclick')) :
typeof define === 'function' && define.amd ? define(['moment', 'fastclick'], factory) :
(global.Quasar = factory(global.moment,global.FastClick));
}(this, (function (moment,FastClick) {
@font-face{font-family:Roboto;font-weight:200;src:url(~roboto-fontface/fonts/Roboto/Roboto-Thin.woff) format("woff")}@font-face{font-family:Roboto;font-weight:300;src:url(~roboto-fontface/fonts/Roboto/Roboto-Light.woff) format("woff")}@font-face{font-family:Roboto;font-weight:400;src:url(~roboto-fontface/fonts/Roboto/Roboto-Regular.woff) format("woff")}@font-face{font-family:Roboto;font-weight:500;src:url(~roboto-fontface/fonts/Roboto/Roboto-Medium.woff) format("woff")}@font-face{font-family:Roboto;font-weight:700;src:url(~roboto-fontface/fonts/Roboto/Roboto-Bold.woff) format("woff")}*,:after,:before{box-sizing:inherit;-webkit-tap-highlight-color:transparent;-moz-tap-highlight-color:transparent}body,html{height:100%;width:100%}#q-app,body,html{margin:0;box-sizing:border-box}input[type=email],input[type=password],input[type=search],input[type=text]{-webkit-appearance:none;-moz-appearance:none}article,aside,details,figcaption,figure,footer,header,main,menu,nav,section,summary{display:block}audio:not([controls])
@fajaryanw
fajaryanw / quasar.standalone.min.js
Created March 10, 2017 10:31
Quasar Framework Standalone min js
/*!
* Quasar Framework v0.13.3
* (c) 2017 Razvan Stoenescu
* Released under the MIT License.
*/
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("moment"),require("fastclick")):"function"==typeof define&&define.amd?define(["moment","fastclick"],e):t.Quasar=e(t.moment,t.FastClick)}(this,function(t,e){function i(){return(navigator.userAgent||navigator.vendor||window.opera).toLowerCase()}function n(t,e){var i=/(edge)\/([\w.]+)/.exec(t)||/(opr)[\/]([\w.]+)/.exec(t)||/(vivaldi)[\/]([\w.]+)/.exec(t)||/(chrome)[\/]([\w.]+)/.exec(t)||/(iemobile)[\/]([\w.]+)/.exec(t)||/(version)(applewebkit)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(t)||/(webkit)[\/]([\w.]+).*(version)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(t)||/(webkit)[\/]([\w.]+)/.exec(t)||/(opera)(?:.*version|)[\/]([\w.]+)/.exec(t)||/(msie) ([\w.]+)/.exec(t)||t.indexOf("trident")>=0&&/(rv)(?::| )([\w.]+)/.exec(t)||t.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(t)||[];return{browser:i[5]||i[3]||i[1]||"
@fajaryanw
fajaryanw / quasar.standalone.min.js.map
Created March 10, 2017 10:30
Quasar Standalone min js map
{"version":3,"sources":["quasar.standalone.js"],"names":["global","factory","exports","module","require","define","amd","Quasar","moment","FastClick","this","getUserAgent","navigator","userAgent","vendor","window","opera","toLowerCase","getMatch","platformMatch","match","exec","indexOf","browser","version","versionNumber","platform","getPlatformMatch","getPlatform","matched","parseInt","android","bb","blackberry","ipad","iphone","ipod","kindle","playbook","silk","mobile","ios","winphone","cros","mac","linux","win","desktop","chrome","opr","safari","vivaldi","webkit","rv","iemobile","ie","edge","name","process","versions","electron","_cordovaNative","document","location","href","cordova","install$1","_Vue","bus","s4","Math","floor","random","toString","substring","animate","_ref","id","finalPos","pos","threshold","factor","done","apply","ids","requestAnimationFrame","diff","abs","newPos","start","_ref2","_ref2$threshold","undefined","_ref2$factor","stop","uid","rgbToHex","red","green","blue","res","map","Numbe