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 Cow | |
@@num_legs_butchered = 0 | |
def initialize(num_legs = 4) | |
@num_legs = num_legs | |
end | |
def legs | |
return @num_legs | |
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
(+ 4 5 ) | |
(print "Hello world!") |
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
;; Adding multiple nums ;; | |
(+ 2 3) ;; Adds 2 & 3 together... | |
(* 3 3) ;; 3 x 3, 9. | |
;; Just a lil' warm up... | |
(float (/ 7 10)) ;; Don't mistake all these semicolons for Javascript...*wink* | |
;; Algebra: |
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
$ cp ~/Downloads/sopa.vim . |
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
$ cd ~/.vim/colors | |
$ cp /downloads/sopa.vim . | |
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 'cuttlefish' | |
date = Cuttlefish::Date.new | |
date.generate |
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
.themes { | |
color : black; | |
width : 250px; | |
float: left; | |
} | |
.books { | |
color : black; | |
float: left; | |
width : 33%; |
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
$(function(){ | |
// Get settings from local storage | |
var settings_pronounceable = localStorage.getItem("settings_pronounceable") == "true"; | |
var settings_capitals = localStorage.getItem("settings_capitals") == "true"; | |
var settings_numbers = localStorage.getItem("settings_numbers") == "true"; | |
var settings_symbols = localStorage.getItem("settings_symbols") == "true"; | |
// Configure settings display with values from local storage, or use defaults | |
$("#settings_pronounceable").prop("checked", settings_pronounceable); |
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
my_field { | |
border-radius: 5px; | |
height: 20px; width: 200px; | |
padding: 3px 10px; | |
} |
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 initialize | |
@moos = moos | |
@oinks = oinks | |
@clucks = clucks | |
end |
OlderNewer