Skip to content

Instantly share code, notes, and snippets.

View kiranps's full-sized avatar

kiran ps kiranps

  • Bangalore
View GitHub Profile
@kiranps
kiranps / keybase.md
Last active November 16, 2021 15:58

Keybase proof

I hereby claim:

  • I am kiranps on github.
  • I am kiranps (https://keybase.io/kiranps) on keybase.
  • I have a public key whose fingerprint is D427 467D D792 9EF0 A44C C936 5308 0CE1 7F7D EA45

To claim this, I am signing this object:

gem install rails
mkdir projects
cd projects
rails new railsgirls
-------------
cd railsgirls
rails server
rails generate scaffold idea name:string description:text picture:string
rails db:migrate
rails server
mkdir projects
rails new railsgirls
cd railsgirls
rails server
rails generate scaffold idea name:string description:text picture:string
rails db:migrate
rails server
const curry = function(fn) {
const arity = fn.length
return (function resolver() {
let memory = [...arguments], next;
return function() {
const local = memory.slice()
local.push(...arguments)
next = local.length >= arity ? fn : resolver;
return next.apply( null, local );
}
sudo apt-get install libjpeg8-dev libtiff5-dev zlib1g-dev libfreetype6-dev liblcms2-dev libwebp-dev tcl8.6-dev tk8.6-dev python-tk
#!/bin/bash
# This program is free software. It comes without any warranty, to
# the extent permitted by applicable law. You can redistribute it
# and/or modify it under the terms of the Do What The Fuck You Want
# To Public License, Version 2, as published by Sam Hocevar. See
# http://sam.zoy.org/wtfpl/COPYING for more details.
for fgbg in 48 ; do #Foreground/Background
for color in {0..15} ; do #Colors
@kiranps
kiranps / tiny
Last active April 14, 2017 20:22
grep -i -F -v -f stopwords.txt filename
tr -sc ’A-Za-z’ ’\012’ < genesis | sort | uniq -c
#! /bin/bash
MYREGEX=\\b\(`perl -pe 's/\n/|/g' $1`\)\\b
perl -pe "s/$MYREGEX//g" $2
hello word