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
| import time | |
| import random | |
| from multiprocessing import Process, Queue, current_process, freeze_support | |
| # | |
| # Function run by worker processes | |
| # | |
| def worker(state, input, output): |
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 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
| SetID,Number,Variant,Theme,Subtheme,Year,Name,Minifigs,Pieces,UKPrice,USPrice,CAPrice,EUPrice,ImageURL | |
| 7522,"0012","1","Space","","1979","Space minifigures",2,4,,,,,"http://images.brickset.com/sets/images/0012-1.jpg" | |
| 7523,"0013","1","Space","","1979","Space minifigures",2,4,,,,,"http://images.brickset.com/sets/images/0013-1.jpg" | |
| 7524,"0014","1","Space","","1979","Space minifigures",2,4,,,,,"http://images.brickset.com/sets/images/0014-1.jpg" | |
| 7563,"0015","1","Space","","1979","Space Mini-Figures",3,18,,,,,"http://images.brickset.com/sets/images/0015-1.jpg" | |
| 9581,"54","1","Space","UFO","1997","UFO Action Pack",,96,,,,,"http://images.brickset.com/sets/images/54-1.jpg" | |
| 1273,"305","1","Space","Classic","1979","Two Crater Plates",,2,,,,,"http://images.brickset.com/sets/images/305-1.jpg" | |
| 1284,"306","1","Space","Classic","1979","Two Lunar Landing Plates",,2,,,,,"http://images.brickset.com/sets/images/306-1.jpg" | |
| 2104,"442","1","Space","Classic","1979","Space Shuttle",1,39,,,,,"http://images.brickset.com/sets/images/442- |
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
| /* | |
| Simple Grid | |
| Project Page - http://thisisdallas.github.com/Simple-Grid/ | |
| Author - Dallas Bass | |
| Site - http://dallasbass.com | |
| */ | |
| *, *:after, *:before { | |
| -webkit-box-sizing: border-box; | |
| -moz-box-sizing: border-box; |
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
| for j in *.txt; do mv -v -- "$j" "${j%.txt}.log"; done |
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
| /**************** | |
| * drones101.js * | |
| **************** | |
| * | |
| * Do you remember, my dear Professor, a certain introductory | |
| * computational rationality class you taught long ago? Assignment | |
| * #2, behavior functions of autonomous agents? I remember that one | |
| * fondly - but attack drones are so much easier to reason about | |
| * when they're not staring you in the face, I would imagine! |
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
| string_tipe = ", ".join('"%s"' % i for i in split_tipe) |
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
| import random | |
| class Board(object): | |
| def __init__(self): | |
| self.board = [[" "," "," "], [" "," "," "], [" "," "," "]] | |
| def print_board(self): | |
| topstr = " a b c" | |
| linestr = " +-----+-----+-----+" | |
| rowstr = "%s | %s | %s | %s |" |
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 AjaxQueue = { | |
| batchSize: 1, | |
| urlQueue: [], | |
| elementsQueue: [], | |
| optionsQueue: [], | |
| setBatchSize: function(bSize) { | |
| this.batchSize = bSize; | |
| }, | |
| push: function(url, options, elementID) { | |
| this.urlQueue.push(url); |
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
| /* | |
| * Task 2 - fetch some db results via ajax call and display in a table. | |
| */ | |
| var admixt_task2 = { | |
| url: '/followers', | |
| fetch: function(){ | |
| var self = this; | |
| $.get(this.url) |
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
| /* | |
| * Task 2 - fetch some db results via ajax call and display in a table. | |
| */ | |
| var admixt_task2 = { | |
| url: '/followers', | |
| fetch: function(){ | |
| var self = this; | |
| $.get(this.url) |
NewerOlder