This file contains hidden or 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
| #!/bin/bash | |
| root=$(pwd) | |
| prefix="$root/vendor/git" | |
| # build into $prefix | |
| cd git-* | |
| make NO_OPENSSL=YesPlease NO_CURL=YesPlease configure | |
| ./configure --prefix="${prefix}" | |
| make -i |
This file contains hidden or 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
| <cfscript> | |
| // setup QofQ | |
| myQuery = QueryNew("Name, Email, Time, Advanced", "VarChar, VarChar, Time, Bit"); | |
| QueryAddRow(myQuery, 2); | |
| QuerySetCell(myQuery, "Name", "Rich", 1); | |
| QuerySetCell(myQuery, "Email", "[email protected]", 1); | |
| QuerySetCell(myQuery, "Time", "9:15 AM", 1); | |
| QuerySetCell(myQuery, "Advanced", False, 1); | |
| QuerySetCell(myQuery, "Name", "Bob", 2); | |
| QuerySetCell(myQuery, "Email", "bob.rich.com", 2); |
This file contains hidden or 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
| /* Friday Puzzler: Sort Type | |
| http://www.raymondcamden.com/index.cfm/2013/3/29/Friday-Puzzler-Sort-Type | |
| This solution should be appropriate for large data-sets. Time complexity is O(n). | |
| It utilizes short-circuiting logic to stop testing a list for sortability as soon as a pair of items that break the sort are found. | |
| It also stops testing different sort functions once a suitable match has been found. | |
| Requirements: Underscore.js |
This file contains hidden or 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
| Shoes.app width: 600, height: 400 do | |
| parent = Shoes::Flow.new app, app: app | |
| Shoes::Button.new(parent, "text", {:width => 131, :height => 137, :margin => 143}, Proc.new {}) | |
| end |
This file contains hidden or 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
| GAt9th: (5:9 4:11 3:11) | |
| BAt9th: (4:9 3:11 2:12) | |
| EAt9th: (3:9 2:12 1:12) | |
| AAt7th: (4:7 3:9 2:10) | |
| DAt7th: (3:7 2:10 1:10) | |
| CAt9th: (5:9 4:11 3:11) | |
| EAt7th: (5:7 4:9 3:9) | |
| GFlat: (6:2 5:4 4:4) | |
| DAt5th: (5:5 4:7 3:7) |
This file contains hidden or 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
| Amaj: (6:5 5:7 4:7 3:6 2:5 1:5) | |
| Emaj: (5:7 4:9 3:9 2:9 1:7) | |
| Bmaj: (6:7 5:9 4:9 3:8 2:7 1:7) | |
| OpnEmaj: (6:0 5:2 4:2 3:1 2:0 1:0) | |
| AfltMin: (6:4 5:6 4:6 3:4 2:4 1:4) | |
| Esomething: (5:7 4:9 3:8 2:9 1:7) | |
| 3:9 2:9 1:7 1:9 1:7 3:9 2:9 3:9 2:9 | |
| 3:9 2:9 1:7 1:9 1:7 3:9 2:9 3:9 2:9 | |
| 3:9 2:9 1:7 1:9 1:7 3:9 2:9 3:9 2:9 |
This file contains hidden or 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
| /* | |
| This is an example of one way to use _.bindAll from the Underscore.cfc library: http://russplaysguitar.github.com/UnderscoreCF/#bindAll | |
| Normally, you wouldn't be able to access other keys in the same struct using "this", but _.bindAll() lets us! | |
| */ | |
| _ = new Underscore(); | |
| exampleStruct = { | |
| greeting: 'Hello, World!', |
This file contains hidden or 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
| <cfcomponent | |
| output="false" | |
| hint="I define the application settings and event handlers."> | |
| <!--- Define the application. ---> | |
| <cfset this.name = hash( getCurrentTemplatePath() ) /> | |
| <cfset this.applicationTimeout = createTimeSpan( 0, 0, 0, 30 ) /> | |
| <!--- | |
| Create a mapping to the virtual file system so that we |
This file contains hidden or 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 block(scroller): | |
| def __init__(self, y): | |
| scroller.__init__(self) | |
| self.side1 = random.randint(20,100) | |
| self.side2 = 20 | |
| self.dimensions = random.choice([(self.side1,self.side2),(self.side2,self.side1)]) | |
| self.image = pygame.Surface(self.dimensions) | |
| self.rect = self.image.get_rect() | |
| self.y = y | |
| pygame.draw.rect(self.image, (28,55,183), self.rect) |
This file contains hidden or 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
| | | |
| | | |
| | | |
| + | | |
| + | | |
| + | | |
| + | | |
| | | |
| | | |
| | |