Skip to content

Instantly share code, notes, and snippets.

View jikkujose's full-sized avatar

Jikku Jose jikkujose

View GitHub Profile
@jikkujose
jikkujose / sequential_array
Created August 30, 2013 18:22
Ruby command to create a sequential array
sequential_array = [*0..23]
@jikkujose
jikkujose / suggest.rb
Created August 31, 2013 08:16
Simple script in Ruby to get Google's suggested search terms
#! /usr/bin/env ruby
require 'open-uri'
require 'nokogiri'
google_query_url = 'http://www.google.co.in/search?&q='
search_query = 'drath note'
if ARGV.length == 0 then
puts "usage: suggest <approx> <wrds> <to> <srch>"
@jikkujose
jikkujose / speed_up_zsh.sh
Created October 3, 2013 05:35
Command to improves zsh speed by skipping 'git status' checks
git config --global oh-my-zsh.hide-status 1
@jikkujose
jikkujose / .tmux.conf
Created November 17, 2013 04:37
Change prefix key in tmux to back-tick and still type back-ticks
unbind C-b
set-option -g prefix `
bind ` send-prefix
@jikkujose
jikkujose / hide-un-hide.sh
Created November 25, 2013 06:22
Hide files or folders in OSX
chflags hidden /path/to/file-or-folder
chflags nohidden /path/to/file-or-folder
@jikkujose
jikkujose / fizzBuzz.rb
Created December 10, 2013 10:12
FizzBuzz
def multiple_of number
Proc.new do |n|
(n % number) == 0
end
end
fb = (0..100).map do |n|
case n
when multiple_of(15)
"FizzBuzz"
{
"language": "Malayalam",
"area": "214",
"population": "745000"
}
" copy all this into a vim buffer, save it, then...
" source the file by typing :so %
" Now the vim buffer acts like a specialized application for mastering vim
" There are two queues, Study and Known. Depending how confident you feel
" about the item you are currently learning, you can move it down several
" positions, all the way to the end of the Study queue, or to the Known
" queue.
" type ,, (that's comma comma)
@jikkujose
jikkujose / beginner_mooc.markdown
Last active August 29, 2015 14:04
A list of beginner level MOOCs

Beginner

Course Name Start Date Length Provider Rating
LFS101x : Introduction to Linux Aug 1 NA EdX NA
Usable Security Aug 18 8 weeks Coursera NA
Programming Foundations with Python: Learn OOP Self paced 4 weeks Udacity 5 (1 review)
CS 101: Building a Search Engine Self paced 7 weeks Udacity 5 (5 reviews)
Intro to Internet working with TCP/IP Self paced 6 weeks openHPI NA
UNSW Computing 1 - The Art of Programming Self paced 12 weeks OpenLearning NA
@jikkujose
jikkujose / print_monkey.rb
Last active August 29, 2015 14:11
What if Objects can print themselves?
class Object
def print
puts self.to_s
end
end
23.times &:print