Skip to content

Instantly share code, notes, and snippets.

View securingsincity's full-sized avatar

James Hrisho securingsincity

View GitHub Profile
@securingsincity
securingsincity / gist:5cd6ad1bfd22c9ea100e
Last active August 29, 2015 14:01
Spotify multiple input jquery-ui autocomplete
function split( val ) {
return val.split( /;\s*/ );
}
function extractLast( term ) {
return split( term ).pop();
}
$("#spotify_song_search").bind( "keydown", function( event ) {
if ( event.keyCode === $.ui.keyCode.TAB && $( this ).data( "ui-autocomplete" ).menu.active ) {
@securingsincity
securingsincity / gist:49a12c511fb9ff4c2885
Created May 31, 2014 14:42
Notes on google glass event

#Google Glass & Android Wear Lightening Talks

##Introduction to Android Wear ###Dario Laverde - HTC Dev Relations - Android Wear

Watch is only the first of the many "formfactors" in theory

You need to get approved to get android wear

@securingsincity
securingsincity / gulpfile.js
Created November 28, 2014 13:30
Karma Istanbul and Browserify
var gulp = require('gulp');
var browserify = require('browserify')
var source = require('vinyl-source-stream');
var istanbulTransform = require('browserify-istanbul');
var karmaServer = require('karma').server;
var glob = require('glob');
gulp.task('coverage',['build-instrument'] , function(done) {
karmaServer.start({
configFile: __dirname + '/karma.conf.js',
{
"node": true, // Enable globals available when code is running inside of the NodeJS runtime environment.
"browser": true, // Standard browser globals e.g. `window`, `document`.
"esnext": true, // Allow ES.next specific features such as `const` and `let`.
"bitwise": false, // Prohibit bitwise operators (&, |, ^, etc.).
"camelcase": false, // Permit only camelcase for `var` and `object indexes`.
"curly": false, // Require {} for every new block or scope.
"eqeqeq": true, // Require triple equals i.e. `===`.
"latedef": true, // Prohibit variable use before definition.
"newcap": false, // Require capitalization of all constructor functions e.g. `new F()`. -- Messenger warnings are annoying
@securingsincity
securingsincity / bash_profile
Last active August 29, 2015 14:17
bash_profile
## Aliases
# Open specified files in Sublime Text
# "s ." will open the current directory in Sublime
alias s='open -a "Sublime Text"'
# Color LS
colorflag="-G"
alias ls="command ls ${colorflag}"
alias l="ls -lF ${colorflag}" # all files, in long format
{
"in_process_packages":
[
],
"installed_packages":
[
"Alignment",
"Autocomplete Javascript with Method Signature",
"Better CoffeeScript",
"BracketHighlighter",
@securingsincity
securingsincity / main.jsx
Created March 24, 2015 20:08
Check all example
var React = require('react/addons');
var Table = require('./table.jsx');
var rows = [
{
'id' : 1,
'foo': 'bar'
},
{
'id' : 2,
'foo': 'baarrrr'
@securingsincity
securingsincity / keybindings.json
Last active November 21, 2016 16:32
Visual Studio Code Set up
// Place your key bindings in this file to overwrite the defaults
[
{ "key": "shift+alt+left", "command": "cursorWordEndLeftSelect" },
{ "key": "shift+alt+down", "command": "cursorColumnSelectDown" },
{ "key": "cmd+shift+d", "command": "editor.action.copyLinesDownAction" },
{ "key": "shift+alt+right", "command": "cursorWordRightSelect" },
{ "key": "shift+tab", "command": "editor.action.outdentLines" },
{ "key": "cmd+l", "command": "editor.action.insertCursorAtEndOfEachLineSelected",
"when": "editorTextFocus" }
]
@securingsincity
securingsincity / Vs code bulk installer.md
Last active January 9, 2023 07:59
VS Code bulk install plugins

VS Code bulk extensions installer.

  • run code --list-extensions > vscodeplugins.txt on the first machine

  • Then copy over vscodeplugins.txt to the new machine and run codeinstaller.sh on the new machine