Skip to content

Instantly share code, notes, and snippets.

View kyranjamie's full-sized avatar

kyranjamie kyranjamie

View GitHub Profile
# Git
alias g="git"
alias commits="git shortlog -sn"
alias gl="git log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --"
alias gs="git status"
alias ga="git add"
alias gc="git commit -m"
alias gp="git push"
alias gpl="git pull"
alias gd="git diff"
gulp.task('scripts:dev', ['templates'], function() {
return gulp.src(paths.scripts)
.pipe(plumber())
.pipe(concat('app.js'))
.pipe(ngmin())
.on('error', notify.onError())
.pipe(gulp.dest('public/dist/js'))
.pipe(refresh(lrserver));
});
- request:
url: /hello
response:
body: ':)'
- request:
url: /give/me/a/smile
response:
status: 200
body: >
{"status": "hello world with single quote"}
@kyranjamie
kyranjamie / gist:1c48427caa121ca8a947
Created May 7, 2014 08:42
there you go, watkins
<?xml version="1.0"?>
<root>
<!--
# Declare hardware devices
-->
<devicevendordef>
<vendorname>daskeyboard</vendorname>
<vendorid>0x04d9</vendorid>
</devicevendordef>
<?xml version="1.0"?>
<root>
<!--
# Declare hardware devices
-->
<devicevendordef>
<vendorname>daskeyboard</vendorname>
<vendorid>0x04d9</vendorid>
</devicevendordef>
<?xml version="1.0"?>
<root>
<devicevendordef>
<vendorname>daskeyboard</vendorname>
<vendorid>0x04d9</vendorid>
</devicevendordef>
<deviceproductdef>
<productname>daskeyboard</productname>
<productid>0x2013</productid>
@function black($opacity) {
@return rgba(0,0,0,$opacity);
};
@function white($opacity) {
@return rgba(255,255,255,$opacity);
};
<item>
<name>Hold num key to symbol</name>
<appendix>Input symbol on hold of number key</appendix>
<identifier>private.num_change</identifier>
<autogen>__HoldingKeyToKey__
KeyCode::KEY_1,
KeyCode::KEY_1,
<item>
<name>Swap symbols for numbers</name>
<appendix></appendix>
<identifier>private.swap_nums</identifier>
<!-- 0 -->
<autogen>__KeyToKey__ KeyCode::KEY_0, ModifierFlag::NONE, KeyCode::KEY_0, ModifierFlag::SHIFT_L</autogen>
<autogen>__KeyToKey__ KeyCode::KEY_0, ModifierFlag::NONE, KeyCode::KEY_0, ModifierFlag::SHIFT_R</autogen>
{
"auto_complete_selector": "source - comment, meta.tag - punctuation.definition.tag.begin",
"color_scheme": "Packages/Tomorrow Color Schemes/Tomorrow-Night.tmTheme",
"dictionary": "Packages/Language - English/en_GB.dic",
"folder_exclude_patterns":
[
".sass-cache",
"node_modules",
".git"
],