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
#!/usr/bin/env bash | |
# fresh-chrome | |
# | |
# Use this script on OS X to launch a new instance of Google Chrome | |
# with its own empty cache, cookies, and user configuration. | |
# | |
# The first time you run this script, it will launch a new Google | |
# Chrome instance with a permanent user-data directory, which you can | |
# customize below. Perform any initial setup you want to keep on every |
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
{"lastUpload":"2020-11-20T16:52:46.995Z","extensionVersion":"v3.4.3"} |
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
body{ | |
margin: 10px; | |
} | |
.warning { | |
background: #d56c61; | |
} | |
td { | |
border: 1px solid #ccc; | |
height: 30px; |
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
#!/usr/bin/env bash | |
# fresh-chrome | |
# | |
# Use this script on OS X to launch a new instance of Google Chrome | |
# with its own empty cache, cookies, and user configuration. | |
# | |
# The first time you run this script, it will launch a new Google | |
# Chrome instance with a permanent user-data directory, which you can | |
# customize below. Perform any initial setup you want to keep on every |
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
directive( 'ignoreMouseWheel', function( $rootScope ) { | |
return { | |
restrict: 'A', | |
link: function( scope, element, attrs ){ | |
element.bind('mousewheel', function ( event ) { | |
element.blur(); | |
} ); | |
} | |
} | |
} ); |
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 restaurants = $resource( App.service + 'restaurant/:action/:id', { action: '@action', id: '@id' }, { | |
// list methods | |
'list' : { 'method': 'GET', params : { 'action' : 'list' }, isArray: true }, | |
'paid_list' : { 'method': 'GET', params : { 'action' : 'paid-list' }, isArray: true }, | |
'delete' : { 'method': 'GET', params : { 'action' : 'delete', 'id': 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
var a = function(){ alert(1); };a(); |
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 isVersionCompatible( required, installed ) { | |
required = required.toString().split( '.' ) | |
installed = installed.toString().split( '.' ); | |
var length = Math.max( required.length, installed.length ); | |
var comparator = 0; | |
for( var i = 0; i < length && !comparator; i++ ) { | |
var part1 = parseInt( required[ i ], 10 ) || 0; | |
var part2 = parseInt( installed[ i ], 10 ) || 0; | |
if( part1 < part2 ){ | |
comparator = 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
(function( $ ){ | |
var info = { | |
name : 'markdownEditor', | |
version : '1.0', | |
soundtrack : 'Requiem for a dream', | |
author : '@pererinha', | |
date : '27/12/2011' | |
} | |
var defaults = { | |
height : 400, |