Skip to content

Instantly share code, notes, and snippets.

View sugavaneshb's full-sized avatar

Sugavanesh B sugavaneshb

View GitHub Profile
(*
Open Terminal Here
A toolbar script for Mac OS X 10.3/10.4
Written by Brian Schlining
*)
@sugavaneshb
sugavaneshb / workspace.sh
Created June 20, 2016 11:47 — forked from scottsb/casesafe.sh
Create and manage a case-sensitive disk-image on OSX.
#!/bin/bash
# ---------------------------------------------------------
# Customizable Settings
# ---------------------------------------------------------
# where to store the sparse-image
WORKSPACE=${HOME}/.workspace.dmg.sparseimage
# location where workspace will be mounted
@sugavaneshb
sugavaneshb / workspace.sh
Created June 20, 2016 11:47 — forked from dixson3/workspace.sh
Create and manage a case-sensitive disk-image on OSX. This is great when you have a need to work with case-sensitive repos on a mac.
#!/bin/bash
# where to store the sparse-image
WORKSPACE=~/Documents/workspace.dmg.sparseimage
create() {
hdiutil create -type SPARSE -fs 'Case-sensitive Journaled HFS+' -size 60g -volname workspace ${WORKSPACE}
}
detach() {
@sugavaneshb
sugavaneshb / jupyter_shortcuts.md
Created May 15, 2016 14:25 — forked from kidpixo/jupyter_shortcuts.md
Keyboard shortcuts for ipython notebook 3.1.0 / jupyter

Toc

Keyboard shortcuts

The IPython Notebook has two different keyboard input modes. Edit mode allows you to type code/text into a cell and is indicated by a green cell border. Command mode binds the keyboard to notebook level actions and is indicated by a grey cell border.

MacOS modifier keys:

  • ⌘ : Command
#!/usr/bin/env python
# Clone or update all a user's gists
# curl -ks https://raw.github.com/gist/5466075/gist-backup.py | USER=fedir python
# USER=fedir python gist-backup.py
import json
import urllib
from subprocess import call
from urllib import urlopen
import os
@sugavaneshb
sugavaneshb / Angular Learning.md
Last active April 23, 2016 07:13
Basic modules in AngularJS. This was created by me long ago when I started on AngularJS. Cleaning up my notes and organizing them in a single place

AngularJS

Directive

Its a marker on a html tag that tells Angular to run or reference some javascript code. This is used to bind the behavior. These are HTML annotation that triggers javascript behaviors.

eg:

@sugavaneshb
sugavaneshb / irc.md
Created March 26, 2016 11:26 — forked from xero/irc.md
irc cheat sheet

#IRC Reference

Not intended as a guide for newbies, more like a "cheat sheet" for the somewhat experienced IRC user, especially one who wields some power over a channel.

##The Basics

  • /join #channel
    • Joins the specified channel.
  • /part #channel
    • Leaves the specified channel.
@sugavaneshb
sugavaneshb / angularjs_directive_attribute_explanation.md
Created February 25, 2016 15:08 — forked from CMCDragonkai/angularjs_directive_attribute_explanation.md
JS: AngularJS Directive Attribute Binding Explanation

AngularJS Directive Attribute Binding Explanation

When using directives, you often need to pass parameters to the directive. This can be done in several ways. The first 3 can be used whether scope is true or false. This is still a WIP, so validate for yourself.

  1. Raw Attribute Strings

    <div my-directive="some string" another-param="another string"></div>
@sugavaneshb
sugavaneshb / SlackAutoInvite.js
Last active December 11, 2015 08:56 — forked from vors/SlackAutoInvite.js
Automation for sending Invites on Slack. Based on Google Forms and Google script. For more context read https://levels.io/slack-typeform-auto-invite-sign-ups/
/*
To automate your slack instance invites,
1. Create a google form with two text fields:
"Your email"
"Who invite you"
2. You will get a google table with responses and 3 fields:
1) "Timestamp"
@sugavaneshb
sugavaneshb / Mac Keyboard Shortcuts.txt
Created November 29, 2015 17:07
Keep forgetting these Mac keymap symbols. So creating a document with one for future references Source: http://osxdaily.com/2012/03/27/making-sense-of-mac-keyboard-symbols/
⌘ is command
⌥ is option
⌃ is control
⇧ is shift
⇪ is caps lock
← is left arrow
→ is right arrow
↑ is up arrow
↓ is down arrow
⇥ is tab