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
Highcharts.Chart.prototype.callbacks.push(function(chart) { | |
var hasTouch = hasTouch = document.documentElement.ontouchstart !== undefined, | |
mouseTracker = chart.tracker, | |
container = chart.container, | |
mouseMove; | |
mouseMove = function (e) { | |
// let the system handle multitouch operations like two finger scroll | |
// and pinching | |
if (e && e.touches && e.touches.length > 1) { |
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
# File: jquery.transliterate.coffee | |
# Author: Marco Martins | https://github.com/skarface | |
# Version: 1.0 | |
# Info: | |
# Prototype based on Backbone.Paginator plugin that will replace diacritic characters with the closest-looking characters | |
# Credits: https://github.com/backbone-paginator/backbone.paginator/blob/master/plugins/diacritic.js | |
# | |
# Usage: String.transliterate() | |
# e.g 'Jérôme'.transliterate() => Jerome |
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.resources', ['ngResource']) | |
.factory('api', function ($resource) { | |
var api = { | |
defaultConfig : {id: '@id'}, | |
extraMethods: { | |
'update' : { | |
method: 'PUT' | |
} |
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
rm /usr/local/bin/subl; | |
ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /usr/local/bin/subl; |
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
Show hidden characters
{ | |
"color_scheme": "Packages/User/Sunburst.tmTheme", | |
"draw_white_space": "all", | |
"ensure_newline_at_eof_on_save": true, | |
"font_size": 14.5, | |
//"font_face": "Fira Code", | |
// "font_options": [ | |
// "gray_antialias" | |
// ], | |
"highlight_line": true, |
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
Here is a list of scopes to use in Sublime Text 2 snippets - | |
ActionScript: source.actionscript.2 | |
AppleScript: source.applescript | |
ASP: source.asp | |
Batch FIle: source.dosbatch | |
C#: source.cs | |
C++: source.c++ | |
Clojure: source.clojure | |
CoffeeScript: source.coffee |
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
'use strict'; | |
/** | |
* @ngdoc directive | |
* @name onepmApp.directive:isActive | |
* @description | |
* # isActive | |
*/ | |
angular.module('onepmApp') | |
.directive('isActive', function ($state, $log, $compile) { |
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
;(function (angular) { | |
'use strict'; | |
angular | |
.module('ng-utils', []) | |
.factory('$memoize', memoize); | |
function memoize() { | |
return function (target) { | |
return function () { |
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
(function () { | |
'use strict'; | |
/** | |
* @ngdoc directive | |
* @name app.directive:unsavedForm | |
* @description | |
* Angular directive that's fires a confirmation modal on unsaved form (if form touched) | |
* @author Marco Martins | |
* https://gist.github.com/skarface |
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
[ | |
// { "keys": ["super+back_slash"], "command": "toggle_comment", "args": { "block": true } }, | |
{ "keys": ["super+alt+r"], "command": "refresh_folder_list" }, | |
{ "keys": ["super+alt+i"], "command": "reindent", "args": {"single_line": false} }, | |
{ "keys": ["super+alt+a"], "command": "alignment" }, | |
{ "keys": ["super+alt+'"], "command": "change_quotes" }, | |
{ "keys": ["super+back_slash"], "command": "toggle_comment", "args": { "block": false } }, | |
{ "keys": ["super+shift+back_slash"], "command": "toggle_comment", "args": { "block": true } } | |
] |
OlderNewer