- resume
- bio
- short bio
- picture
- dev. role (frontend, backend, etc)
- cities willing to work
- city from
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[1] pry(main)> def say_hi name | |
[1] pry(main)* print "Hello, #{name}" | |
[1] pry(main)* end | |
=> nil | |
[2] pry(main)> say_hi "Mika | |
[2] pry(main)* " | |
Hello, Mika | |
=> nil | |
[4] pry(main)> x = ['hello','there'] | |
=> ["hello", "there"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def shakil_the_dog | |
while true | |
print "Give shakil a command: " | |
input = gets.chomp | |
case input | |
when 'woof' | |
puts "WOOF WOOF WOOF" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def sign height, width, color = [] | |
total = 0 | |
sqrfeet = height * width | |
total = sqrfeet * 15 | |
print "Enter your colors seperated with commas: " | |
color = gets.chomp.split(',').trim | |
if color.length > 2 | |
total += color.length * 15 | |
else | |
total += color.length * 10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DROP TABLE | |
IF EXISTS contacts; | |
CREATE TABLE contacts ( | |
id serial NOT NULL PRIMARY KEY, | |
firstname varchar(40) NOT NULL, | |
lastname varchar(40) NOT NULL, | |
email varchar(40) NOT NULL | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class TeachersImporter | |
def initialize(filename=File.dirname(__FILE__) + "/../db/data/students.csv") | |
@filename = filename | |
end | |
def import | |
field_names = ['name', 'email', 'address', 'phone_number'] | |
print "Importing students from #{@filename}: " |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# get current branch in git repo | |
parse_git_branch () { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' | |
} | |
export PS1="\[\e[32m\]\u\[\e[m\]\[\e[32m\]:\[\e[m\]\[\e[36m\]\W\[\e[m\] \[\e[35m\]\`parse_git_branch\`\[\e[m\]\[\e[33m\]\\$\[\e[m\] " | |
# some more ls aliases | |
alias ls='ls -F' | |
alias ll='ls -alF' | |
alias la='ls -A' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Built from Mohit Cheppudira's sine wave generator - http://0xfe.blogspot.com | |
// Modified by Murat Ayfer - http://muratayfer.com | |
// Modified by Mika Kalathil | |
var ON = 450; | |
var OFF = 550; | |
var soundWave = function(context) { | |
// xs is a list of x (time) values, one per wave. | |
// time is not represented as synchronized clicks or milliseconds, its passing is freq dependent | |
// so that's why we keep a value per each wave. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Built from Mohit Cheppudira's sine wave generator - http://0xfe.blogspot.com | |
// Modified by Murat Ayfer - http://muratayfer.com | |
// Modified by Mika Kalathil | |
var ON = 450; | |
var OFF = 550; | |
var soundWave = function(context) { | |
// xs is a list of x (time) values, one per wave. | |
// time is not represented as synchronized clicks or milliseconds, its passing is freq dependent | |
// so that's why we keep a value per each wave. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Original Code | |
gulp.task('jade', function() { | |
gulp.src('app/**/*.jade') | |
.pipe(jade({pretty: true})) | |
.pipe(gulp.dest('.tmp')) | |
}) | |
gulp.task('inject', function() { | |
bComp = removeScss(bower) | |
gulp.src('.tmp/index.html') | |
.pipe(inject(gulp.src(bComp, {read: false}))) |
OlderNewer