Skip to content

Instantly share code, notes, and snippets.

View harishraisinghani's full-sized avatar

Harish Raisinghani harishraisinghani

View GitHub Profile
@harishraisinghani
harishraisinghani / esd_csv_python.ipynb
Last active November 27, 2020 19:32
Plotting Empty Set Dollar(ESD) Epoch Bonding Data
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@harishraisinghani
harishraisinghani / ajax-example.html
Created August 23, 2016 04:53
W6D1 - Ajax Example
<!doctype html>
<html>
<head>
<title> Ajax Example </title>
</head>
<body>
<section>
@harishraisinghani
harishraisinghani / arrayOfLight.js
Last active August 22, 2016 19:09
W6D1 - Javascript Introduction
var arrayOfLight = function(number) {
arr = [];
for (var i = 0; i <= number; i++) {
arr[i] = i;
}
return arr;
};
@harishraisinghani
harishraisinghani / gist:9e97c5ef42409d81316cc663d750775b
Created August 12, 2016 16:14 — forked from lucasfais/gist:1207002
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt
-- Let's briefly talk about Postgres's facilities for looking at schemas, and getting help
help
\?
\l
\d
-- Now let's talk about transactions. Not relevant to your life right now, but super relevant
-- if you graduate and your first boss gives you access to the production database. Forget
-- for now, but later if you find yourself in that situation, google!
begin;
@harishraisinghani
harishraisinghani / ruby_argv.md
Created July 26, 2016 00:38 — forked from FaisalAl-Tameemi/ruby_argv.md
W2D1 - ARGV Example

ARGV in Ruby

What's ARGV?

ARGV is a convention in programming which refers to the “argument vector,” in basic terms a variable that contains the arguments / parameters passed to a program through the command line.

Typically an array with contains each argument in a certain position within the array. This may work differently in languages other than Ruby.

Example of ARGV

@harishraisinghani
harishraisinghani / ruby_classical_inheritance_review.md
Created July 24, 2016 15:49 — forked from davidvandusen/ruby_classical_inheritance_review.md
W1E - Ruby classical inheritance review - David VanDusen

Classical Inheritance in Ruby

For programmers who are new to Object Oriented Programming, the ideas behind classical inheritance can take some getting used to. This article walks you through the syntax of defining class inheritance in Ruby with explanations of each OOP feature along the way. You will have created many inheriting classes and used them in Ruby code by the end of this exercise.

Create a new Ruby code file and copy the code examples into it as you go. Run the file with the provided driver code and read the output. Try writing your own driver code to try things out new concepts as they're introduced.