Skip to content

Instantly share code, notes, and snippets.

View gist:30f4ec3cb9806223b6f4
<>, both not included in range,
<=>, both included
<==, left not included,
==> right not included
infix operator <> {}
infix operator <=> {}
infix operator ==> {}
infix operator <== {}
@kausik93
kausik93 / The Technical Interview Cheat Sheet.md
Last active Aug 25, 2015 — forked from TSiege/The Technical Interview Cheat Sheet.md
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.
View The Technical Interview Cheat Sheet.md

Studying for a Tech Interview Sucks, so Here's a Cheat Sheet to Help

This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.

Data Structure Basics

###Array ####Definition:

  • Stores data elements based on an sequential, most commonly 0 based, index.
  • Based on tuples from set theory.
@manojkumarm
manojkumarm / FRPandPhilosophy.md
Last active Aug 25, 2015 — forked from dmvaldman/FRPandPhilosophy.md
Descartes, Berkeley and Functional Reactive Programming
View FRPandPhilosophy.md

Descartes, Berkeley and Functional Reactive Programming

By @dmvaldman

Functional Reactive Programming (FRP) is generating buzz as an alternative to Object Oriented Programming (OOP) for certain use cases. However, an internet search quickly leads a curious and optimistic reader into the rabbit-hole of monads, functors, and other technical jargon. I’ve since emerged from this dark and lonely place with the realization that these words are mere implementation details, and that the core concepts are far more universal. In fact, the groundwork was laid down many centuries before the first computer, and has more to do with interpretations of reality, than structuring programs. Allow me to explain.

There’s an old thought experiment that goes like this:

Tree

@mreidsma
mreidsma / about.markdown
Created Aug 25, 2015
Reformat silly tables in WebPAC Pro Advanced Search
View about.markdown

In III's terrible OPAC, WebPAC Pro, the Advanced Search screen has all these little nested tables that just hold one label in a table cell and an imput in another. There is no reason they should be tables! So I wrapped each of the tokens in the Web Master with an id, and then wrote this silly function to remove the table markup and just give me labels and form elements. Then I used CSS to make it look the way it should, since this is 2015 and not 1997.

The fact that I had to write this function boggles my mind.

View gist:8db6ae8d92adc022b9e8
===========================================================================
====> Running Q/A tests (stage-qa)
Error: Bad linking on [libedit.so.7] please add USES=libedit
Error: Bad linking on [libedit.so.7] please add USES=libedit
Error: Bad linking on [libedit.so.7] please add USES=libedit
Error: Bad linking on [libedit.so.7] please add USES=libedit
Error: Bad linking on [libedit.so.7] please add USES=libedit
Error: Bad linking on [libedit.so.7] please add USES=libedit
Error: Bad linking on [libedit.so.7] please add USES=libedit
Error: Bad linking on [libedit.so.7] please add USES=libedit
@statgeek
statgeek / surv_analysis
Created Aug 25, 2015
Survival Analysis Summary from Proc Lifetest
View surv_analysis
/*
Author F. Khurshed
Date: June 15, 2011
Purpose: To automatically create a summary table with info and KM Graph
Output created is an RTF file with table and graph below. THe first table is for the overall curve and then for each categorical
variable specified.
*/
@raelik
raelik / steps.txt
Created Aug 25, 2015
Using jruby-gradle to create a jruby+dependencies jar, and still have your application code live directly on the filesystem
View steps.txt
Assuming that you're using jruby-gradle 1.0.3, you'll need to take these steps:
1. In your build.gradle, in addition to your gems dependencies, you'll need:
jrubyJar {
initScript runnable()
}
configurations {
jrubyJar {
View eloquentJs_chapter2ex02.js
// FizzBuzz
for (var i = 0; i <= 100; i++){
var results = "";
if(i % 3 === 0) results += "Fizz";
if(i % 5 === 0) results += "Buzz";
console.log(results || i);
}
@sinapse1987
sinapse1987 / gist:75796bee967bc9494253
Last active Aug 25, 2015 — forked from ianbarber/gist:5170508
Example Sign In activity for Google+ Sign-In on Android
View gist:75796bee967bc9494253
package com.example.anothersignintest;
import java.io.IOException;
import com.google.android.gms.auth.GoogleAuthException;
import com.google.android.gms.auth.GoogleAuthUtil;
import com.google.android.gms.auth.UserRecoverableAuthException;
import com.google.android.gms.common.Scopes;
import com.google.android.gms.common.ConnectionResult;
import com.google.android.gms.common.GooglePlayServicesClient.ConnectionCallbacks;
@kknights
kknights / eloquentJs_chapter2ex01.js
Last active Aug 25, 2015
EJ - Looping a triangle
View eloquentJs_chapter2ex01.js
// Looping a triangle
var results = "";
for (var i = 0; i <= 7; i++) {
console.log(results += "#");
}