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
import path from 'path'; | |
import webpack from 'webpack'; | |
import BrowserSyncPlugin from 'browser-sync-webpack-plugin'; | |
import ExtractTextPlugin from 'extract-text-webpack-plugin'; | |
import HtmlWebpackPlugin from 'html-webpack-plugin'; | |
import bourbon from 'node-bourbon'; | |
import argv from './gulp/argv'; |
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
; CMD+TAB -> Application Switching | |
<#Tab::AltTab | |
!Tab::return | |
; Remap <> and ^° | |
;SC029::Send {<} | |
;+SC029::Send {>} | |
;$<::Send {^} | |
;+$<::Send {°} ;doesnt work |
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
'use strcit'; | |
var gulp = require('gulp'), | |
ts = require('gulp-typescript'), | |
sourcemaps = require('gulp-sourcemaps'), | |
concat = require('gulp-concat'), | |
browserSync = require('browser-sync'), | |
reload = browserSync.reload, |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>ShadowDOM Events</title> | |
<style> | |
div { | |
box-sizing: border-box; | |
} |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.14/angular.min.js"></script> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
</head> | |
<body ng-app="mine"> | |
<div ng-controller="myCtrl as ctrl"> | |
<my class="red" ng-click="increment()"></my> |
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
$httpBackend.expect('GET', '/Customer/1', null).respond({ | |
id: 1, | |
name: 'John Doe', | |
age: 42, | |
purchases: [ | |
{ | |
id: 1, | |
items: [ | |
{ name: 'Shampoo' }, | |
{ name: 'Soap' } |
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
<snippet> | |
<content><![CDATA[ | |
/** @requirement missing */ | |
it('$1', function () { | |
$2 | |
}); | |
]]></content> | |
<tabTrigger>it</tabTrigger> | |
<scope>source.js</scope> | |
<description>Insert New Test</description> |
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
<snippet> | |
<content><![CDATA[ | |
/** @requirement ${1:missing} */ | |
]]></content> | |
<!-- Optional: Set a tabTrigger to define how to trigger the snippet --> | |
<!-- <tabTrigger>hello</tabTrigger> --> | |
<!-- Optional: Set a scope to limit where the snippet will trigger --> | |
<!-- <scope>source.python</scope> --> | |
<description>Insert Requirements Comment</description> | |
</snippet> |
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
// Vars (I put these in a _globals.scss with all my other variables) | |
// ------------------------ | |
$breakpointTiny: 580; | |
$breakpointSmall: 790; | |
$breakpointNormal: 1200; | |
// Breakpoint Mixin | |
// ------------------------ | |
$oldie: false !default; |
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
Content = | |
all:(Element / Text)* { | |
return all.join("").replace(/\n$/, ''); | |
} | |
Element = | |
startTag:StartTag content:Content endTag:EndTag { | |
if (startTag != endTag) { | |
throw new Error( | |
"Expected </" + startTag + "> but </" + endTag + "> found." |