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
text-rendering: optimizeLegibility; | |
/* that's it! */ | |
… |
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 primeCheck(number) : | |
divisorList = range(1,(number +1)) | |
for divisor in divisorList : | |
print str(number) + " divided by " + str(divisor) + " has a remainder of " + str(number%divisor) | |
primeCheck(7) |
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
input, textarea, select { | |
-webkit-appearance: none; | |
} |
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
coffee -c -w -o ../js application.coffee |
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
firstname = "fatArrow other person" | |
bill = | |
firstname: 'skinnyArrow Bill' | |
lastname: 'williams' | |
skinnyArrow: -> console.log @firstname | |
fatArrow: => console.log @firstname | |
bill.skinnyArrow() #bound to the object in which it's called. hence it returns the firstname property of the "bill" object |
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
a = ["A", "B", "C", "B", "A"] | |
a.detect{ |e| a.count(e) > 1 } |
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
@ConversationClone.module "FooterApp.Show", (Show, App, Backbone, Marionette, $, _) -> | |
Show.Controller = | |
showFooter: -> | |
footerView = @getFooterView | |
getFooterView: -> | |
new Show.Footer |
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
var MODULE = (function () { | |
var my = {}, | |
privateVariable = 1; | |
function privateMethod() { | |
// ... | |
} | |
my.moduleProperty = 1; | |
my.moduleMethod = function () { |
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
var myModule = (function($, undefined){ | |
var myVar1 = '', | |
myVar2 = ''; | |
var someFunction = function(){ | |
return myVar1 + " " + myVar2; | |
}; | |
return { | |
getMyVar1: function() { return myVar1; }, //myVar1 public getter |
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
body { | |
font-family: Helvetica, arial, sans-serif; | |
font-size: 14px; | |
line-height: 1.6; | |
padding-top: 10px; | |
padding-bottom: 10px; | |
background-color: white; | |
padding: 30px; } | |
body > *:first-child { |
OlderNewer