This file contains 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
### Keybase proof | |
I hereby claim: | |
* I am killercodemonkey on github. | |
* I am bengtler (https://keybase.io/bengtler) on keybase. | |
* I have a public key ASAseeSfbCZ1S1Lopmz-jlW7pQiWwsgPA08iTdxvNrbNGwo | |
To claim this, I am signing this object: |
This file contains 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 orientation = function (file, callback) { | |
var fileReader = new FileReader(); | |
fileReader.onloadend = function () { | |
var base64img = "data:" + file.type + ";base64," + _arrayBufferToBase64(fileReader.result); | |
var scanner = new DataView(fileReader.result); | |
var idx = 0; | |
var value = 1; // Non-rotated is the default | |
if (fileReader.result.length < 2 || scanner.getUint16(idx) != 0xFFD8) { | |
// Not a JPEG | |
if (callback) { |
This file contains 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 { ApolloLink, Observable } from 'apollo-link' | |
import { execute, GraphQLSchema } from 'graphql' | |
export class LocalLink extends ApolloLink { | |
schema: GraphQLSchema | |
constructor(schema: GraphQLSchema) { | |
super() |
This file contains 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
git push origin origin/OLD_BRANCH:refs/heads/NEW_BRANCH && git push origin :OLD_BRANCH |
This file contains 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
// get new release | |
git fetch --tags | |
git checkout -b <tagname> tags/<tagname> | |
// update existing tag | |
// switch branch before | |
git branch -d <tagname> | |
git fetch --tags | |
git checkout -b <tagname> tags/<tagname> |
This file contains 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
git log 1.1.1...1.1.2 --pretty=format:'* %s * view commit %H' | grep -v Merge |
This file contains 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
Plugins: | |
======== | |
AdvancedNewFile | |
AngularJS | |
Babel | |
BracketHighlighter | |
DocBlockr | |
Emmet | |
Git | |
GitGutter |
This file contains 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
git log 1.1.1...1.1.2 --pretty=format:'* %s * view commit %H' | grep -v Merge |
This file contains 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
angular.module('app', ['ionic']).directive('elementSize', [ | |
'$timeout', | |
function ($timeout) { | |
return { | |
restrict: 'A', | |
link: function (scope, element, attrs) { | |
element.ready(function () { | |
var height, | |
width; | |
$timeout(function () { |
NewerOlder