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
-module(fetlife_erlang_engineer). | |
-compile(export_all). | |
start_interviewer() -> | |
spawn(?MODULE, interviewer, []). | |
apply_for_job(Level) -> | |
Ref = make_ref(), | |
interview ! {self(), Ref, {skillz, Level}}, | |
receive |
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
104.131.107.113 25565 |
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
Starting 2014_09_27 mysql full backup at hour 04_01 | |
Backup filename 2014_09_27.tar.lzo | |
Finished with success 2014_09_27 mysql backup at hour 06_29 | |
Mysql backup is written in root@backup.sea.pro:/disk3/mysql-backups/2014_09_27.tar.lzo | |
Beginning to Test 2014_09_27 full backup 2014_09_27.tar.lzo at 06_29 | |
+ backup_type=full | |
+ filename=2014_09_27.tar.lzo | |
+ backup_date=2014_09_27 | |
++ date +%Y_%m_%d | |
+ today=2014_09_27 |
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 Caesar | |
def self.encrypt(shift, message) | |
apply_algorithm(:encrypt, shift, message) | |
end | |
def self.decrypt(shift, message) | |
apply_algorithm(:decrypt, shift, message) | |
end | |
private |
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
fred = Person.new | |
fred.thing # returns "I'm a person!" |
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
joe = Person.new | |
joe.name = "Joe Smith" | |
joe.name # returns "Joe Smith" |
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 Person | |
def thing | |
"I'm a person!" | |
end | |
end |
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
return @name |
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
require 'optparse' | |
options = {} | |
OptionParser.new do |opts| | |
opts.banner = "Usage: raptor [app_directory] [options]" | |
end.parse! | |
class ProjectParser | |
def initialize | |
set_project_directory |
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
// fizzbuzz | |
// A program that counts from 1 to 100, replacing numbers divisible by 3 with "Fizz", | |
// those divisible by 5 with "Buzz", and those divisble by both 3 and 5 with "FizzBuzz". | |
package main | |
import "fmt" | |
import "strconv" | |
func main() { |
OlderNewer