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
var Tap = require( 'tap.js' ); | |
var $ = require( 'jquery' ); | |
var tap = new Tap( document ); | |
require( 'document-register-element/build/document-register-element.js' ); | |
//var escape = require('escape-html'); | |
var btn = document.querySelector( 'button' ); | |
btn.addEventListener( 'tap', function ( e ) { | |
console.log( 'tap, tap', e.target ); | |
} ) |
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
npm i --save https://github.com/:username/:reponame/tarball/:branchname | |
# Via http://package.json.nodejitsu.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
npm i | |
> [email protected] postinstall /Users/roy/tmp/eslint/node_modules/beefy/node_modules/chokidar | |
> node setup-deps.js | |
Executing npm install [email protected] [email protected] | |
npm WARN package.json [email protected] No license field. | |
../nodefsevents.cc:31:30: error: expected class name | |
class NodeFSEvents : node::ObjectWrap { | |
^ |
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
// require() some stuff from npm (like you were using browserify) | |
// and then hit Run Code to run it on the right | |
var $ = require('jquery'); | |
$(function () { $('body').append('<p>Hello world from app here!</p>'); }) |
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 isValidEmail(email) { | |
return email.match(/^[^\s@]+@[^\s@]+\.[^\s@]+$/); | |
} | |
function getUserByEmail(email) { | |
return new Promise((resolve) => { | |
setTimeout(() => { | |
// keep rejections for exceptions only | |
if (email !== '[email protected]') { | |
return resolve(null); |
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
$(`<script src="//code.jquery.com/ui/1.12.1/jquery-ui.min.js" | |
integrity="sha256-VazP97ZCwtekAsvgPBSUwPFKdrwD3unUfSGVYrahUqU=" | |
crossorigin="anonymous"></script>`).appendTo('head') | |
$(`<link href="//cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.css" rel="stylesheet" type="text/css" />`).appendTo('head'); | |
var createBox = () => { | |
const w = 100; | |
const h = 100; | |
const style = ` |
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
# If you receive the following error while trying to open the Creative SoundBlaster Omni Control Panel | |
# | |
# ============================================================== | |
# Cannot start the app because the audio driver cannot be found | |
# ============================================================== | |
# then this is the solution: | |
# In the command line execute: | |
# | |
sudo kextload -b com.Creative.driver.TruStudioPCUSBAudioPlugin |
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
{"lastUpload":"2019-09-25T07:36:27.222Z","extensionVersion":"v3.4.3"} |
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
{"lastUpload":"2018-12-01T18:40:07.609Z","extensionVersion":"v3.2.2"} |
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
[user] | |
# name = yourname | |
# email = <your@email> | |
[core] | |
whitespace = trailing-space,space-before-tab,cr-at-eol | |
excludesfile = ~/.gitignore_global | |
[color] | |
diff = auto | |
status = auto | |
branch = auto |