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
| <snippet> | |
| <content><![CDATA[ | |
| #ifndef ${TM_FILEPATH/(([A-Za-z]+)\/src\/)|./\U(?1:$2_)\E/g}${TM_FILENAME/(([A-Z])([A-Z][a-z]))|(([a-z])([A-Z]))|([a-z])|(\.)/\U(?1:$2_$3)(?4:$5_$6)$7(?8:_)\E/g} | |
| #define ${TM_FILEPATH/(([A-Za-z]+)\/src\/)|./\U(?1:$2_)\E/g}${TM_FILENAME/(([A-Z])([A-Z][a-z]))|(([a-z])([A-Z]))|([a-z])|(\.)/\U(?1:$2_$3)(?4:$5_$6)$7(?8:_)\E/g} | |
| $0 | |
| #endif | |
| ]]></content> | |
| <!-- Optional: Set a tabTrigger to define how to trigger the snippet --> |
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
| These quizs are very interesting and helpful. It's for query and data manipulation. Two small databases used to demonstrate basic query syntax, various subquery syntax and some DML. |
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
| POPULATION_SIZE = 24 | |
| NUM_BITS = 64 | |
| NUM_GENERATIONS = 1000 | |
| CROSSOVER_RATE = 0.7 | |
| MUTATION_RATE = 0.001 | |
| class Chromosome | |
| attr_accessor :genes |
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
| /* | |
| highlight v3 !! Modified by Jon Raasch (http://jonraasch.com) to fix IE6 bug !! | |
| Highlights arbitrary terms. | |
| <http://johannburkard.de/blog/programming/javascript/highlight-javascript-text-higlighting-jquery-plugin.html> | |
| MIT license. |
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
| var TestView = Backbone.View.extend({ | |
| initialize: function() { | |
| console.log(this.collection) | |
| this.collection.bind("reset", this.render); | |
| this.collection.fetch({reset: true}); | |
| }, | |
| render: function() { |
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
| Name | Points | ||
|---|---|---|---|
| Ahsan, Sanjida | [email protected] | 805 | |
| Al-Jarry, Zaidoon | [email protected] | 334 | |
| Anderson, Jeffrey | [email protected] | 681 | |
| Barlas, Ghazanfar | [email protected] | 959 | |
| Barraza, Pamela | [email protected] | 812 | |
| Beers, Kay | [email protected] | 80 | |
| Bodmer, Miles | [email protected] | 698 | |
| Buddenborg, Sarah | [email protected] | 473 | |
| Cornelius, Grace | [email protected] | 603 |
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
| require 'CSV' | |
| require 'curb' | |
| def migrate(uuid) | |
| index = 0 | |
| CSV.foreach("members.csv") do |row| | |
| if index==0 | |
| continue | |
| end | |
| Curl.get "http://loyalty.500friends.com/api/record.gif?uuid=#{uuid}&email=#{row[1]}& | |
| value=#{row[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
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
| <html xmlns="http://www.w3.org/1999/xhtml"> | |
| <head> | |
| <title>Rewards - Shoebuy.com - Free Shipping & Return Shipping</title> | |
| <meta name="keywords" content=""> | |
| <meta name="description" content=""> | |
| <script type="text/javascript" src="http://i.shoebuy.com/jscript/facebook.js"></script> | |
| <meta property='fb:app_id' content='146327295405912'/> | |
| <meta property='og:title' content='Rewards'/> |
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
| $.mockjax({ | |
| url: "/restful/fortune", | |
| responseTime: 750, | |
| contentType: "text/json", | |
| responseText: [{ | |
| a:'a' | |
| },{ | |
| a:'b' | |
| },{ | |
| a:'c' |
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
| $(function() { | |
| var placeArray = function(array, target) { | |
| array.forEach(function(item) { | |
| target = placeObj(item, target); | |
| }); | |
| return target; | |
| }; | |
| var placeObj = function(obj, target) { |
NewerOlder