yarn add <username/repository>
# Example
This file contains hidden or 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
function randomInt(min, max) { | |
return Math.floor(Math.random() * (max - min + 1) + min) | |
} | |
const saveToCloud = () => { | |
return new Promise((resolve, reject) => { | |
const delay = randomInt(500, 3000) | |
setTimeout(() => { | |
resolve('Save to cloud success in ' + delay + 'ms') |
This file contains hidden or 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
function getTemprature() { | |
return 20 | |
} | |
if (getTemprature > 100) { | |
alert('DANGER!') | |
} else { | |
alert("It's ok") | |
} |
This file contains hidden or 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
Layout info: | |
{ | |
"id": "com.apple.keylayout.DVORAK-QWERTYCMD", | |
"lang": "en" | |
} | |
isUSStandard: false | |
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
| HW Code combination | Key | KeyCode combination | Pri | UI label | User settings | Electron accelerator | Dispatching string | WYSIWYG | | |
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
| KeyA | a | A | | A | a | A | [KeyA] | | |
This file contains hidden or 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
<?xml version="1.1" encoding="UTF-8"?> | |
<!DOCTYPE keyboard SYSTEM "file://localhost/System/Library/DTDs/KeyboardLayout.dtd"> | |
<!--Last edited by Ukelele version 3.0.2.59 on 2016-03-07 at 15:15 (SGT)--> | |
<keyboard group="126" id="-12870" maxout="1" name="x_layout"> | |
<layouts> | |
<layout first="0" last="17" mapSet="16c" modifiers="f4"/> | |
<layout first="18" last="18" mapSet="984" modifiers="f4"/> | |
<layout first="21" last="23" mapSet="984" modifiers="f4"/> | |
<layout first="30" last="30" mapSet="984" modifiers="f4"/> | |
<layout first="194" last="194" mapSet="984" modifiers="f4"/> |
From Metaphox for Metaphox
- XCode
xcode-select --install
- iTerm2 http://iterm2.com/
This file contains hidden or 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
# Thanks to this post: | |
# http://blog.ikato.com/post/15675823000/how-to-install-consolas-font-on-mac-os-x | |
$ brew install cabextract | |
$ cd ~/Downloads | |
$ mkdir consolas | |
$ cd consolas | |
$ curl -O http://download.microsoft.com/download/f/5/a/f5a3df76-d856-4a61-a6bd-722f52a5be26/PowerPointViewer.exe | |
$ cabextract PowerPointViewer.exe | |
$ cabextract ppviewer.cab |
This file contains hidden or 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
{ | |
"orders": [ | |
{ | |
"id": 110, | |
"code": "A-1003", | |
"customer_id": 23, | |
"items_ids": [1, 3, 4], | |
"grand_total": 30000 | |
}, | |
{ |
This file contains hidden or 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 | |
namespace App\Http\Middleware; | |
class CaptureRequestExtension | |
{ | |
public function handle($request, $next) | |
{ | |
if ($request->route()->parameter('_extension') !== null) { | |
$request->attributes->set('_extension', substr($request->route()->parameter('_extension'), 1)); |
This file contains hidden or 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
;(function(){ | |
alert('Hello, world!'); | |
})(); |