Skip to content

Instantly share code, notes, and snippets.

View chintanparikh's full-sized avatar
🎯
Focusing

Chintan Parikh chintanparikh

🎯
Focusing
View GitHub Profile
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<!--
======================================================================
Darkside
======================================================================
A Sublime Text 2 / Textmate theme.
Copyright (c) 2012 Dayle Rees.
Released under the MIT License <http://opensource.org/licenses/MIT>
======================================================================
function collapse_pwd {
echo $(pwd | sed -e "s,^$HOME,~,")
}
function prompt_char {
git branch >/dev/null 2>/dev/null && echo '±' && return
hg root >/dev/null 2>/dev/null && echo '☿' && return
echo '○'
}
# Path to your oh-my-zsh configuration.
ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="prose"
# Example aliases
!************************************************************************!
! !
! general calling convention: !
! !
! (1) Register usage is as implied in the assembler names !
! !
! (2) Stack convention !
! !
! The stack grows towards higher addresses. The stack pointer !
! ($sp) points to the next available (empty) location. !

Every few days, I get an email or a Facebook message asking me if I know anyone is looking to be their technical co-founder. This post is an aggregation of responses and tips I give to college startups looking for a technical co-founder.

###Meet Hackers

The most important thing you can do is to have many hacker friends.

Every hacker I know would never consider being a technical co-founder of someone they didn't know. The "exception" is if you've already got a funded, successful startups, but those founders will never be looking for a technical co-founder, so it's hardly an exception.

The logical conclusion is that you need to meet a lot of technical people. But there's a clear difference between meeting someone and befriending someone. In college, meeting hackers isn't hard - go to your college web development/mobile development club. The thing is, humans aren't stupid - developers will know if you're just there to shake hands and "network", and it means you're not going to fit in with the community.

{
articles: {
[{
id: 7,
headline: "Some headline",
source: "http://bloomberg.com",
link: "http://bloomberg.com/article/2"
similar: [8, 13]
},
{
def jaccard_index(n, article_one, article_two)
first = article_one.split(' ').each_cons(n).to_a
second = article_two.split(' ').each_cons(n).to_a
(first & second).length.to_f / ((first.length + second.length).to_f / 2).abs.to_f
end
void swap(int* a, int* b)
{
int temp = *a;
*a = *b;
*b = temp;
}
@chintanparikh
chintanparikh / c-questions.txt
Created December 12, 2013 04:55
C Questions for 2110
3. Write basic linked list library functions for a doubly-linked list
of integers with head and tail pointers. You should include:
AddToFront
AddToBack
RemoveFromFront (Returns value removed)
RemoveFromBack (Returns value removed)
AddInOrder
Delete (Deletes first occurrence of target)
DeleteAll (Deletes all occurrences of target)
require 'nokogiri'
require 'open-uri'
for i in 1..1000
doc = Nokogiri::HTML(open("http://www.saavn.com/u/pratyushraman#{i}"));
valid_pratyush = []
doc.xpath('//*[@id="main"]/div/div[2]/ul/li[1]/a/em').each do |a|
valid_pratyush << a.content + " - pratyushraman#{i}" if a.content.to_i > 0
puts i
end