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 requests | |
from sets import Set | |
_seed = 'http://apibunny.com/cells/taTKQ3Kn4KNnmwVI' | |
_base = 'http://apibunny.com/cells/' | |
visited = Set() | |
def processJson(json) : | |
cells = json.get('cells')[0] | |
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
public static boolean isProbablyWrongEncoded(String s){ | |
int charNum = s.length(); | |
float wordCount = 1.0f; | |
float auxCharCount =0.0f; | |
float ctrlCharCount =0.0f; | |
for (int i =0; i < charNum; i++) { | |
int cp = Character.codePointAt(s, i); | |
if (s.charAt(i) == ' ') { | |
wordCount ++; |
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
qSort :: (Ord a) => [a] -> [a] | |
qSort [] = [] | |
qSort (x:xs) = | |
let left = qSort (filter (<=x) xs) | |
right = qSort (filter(>x) xs) | |
in left ++ [x] ++ right |
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 java.util.ArrayList; | |
import java.util.List; | |
/* root with three children | |
O | |
/ | \ | |
O O O | |
/ / \ \ | \ | |
O O O O O O |
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
INFO ~ [GitHubCollector] git://github.com/mochidev/MDSpreadView.git isNew: true | |
ERROR ~ NO XLIMIT : https://api.github.com/repos/mochidev/MDSpreadView/commits?page=1&per_page=100 | |
ERROR ~ HEADERS : | |
{ null=[HTTP/1.1 200 OK], | |
Status=[200 OK], | |
ETag=["6a3f7cea142e2824a2fbe1f262e11ef9"], | |
Date=[Wed, 23 May 2012 17:06:36 GMT], | |
Content-Length=[49245], | |
Connection=[keep-alive], | |
Content-Type=[application/json; charset=utf-8], |
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
<?xml version="1.0" encoding="utf-8"?> | |
<contentlocation xmlns:yahoo="http://www.yahooapis.com/v1/base.rng" xmlns="http://wherein.yahooapis.com/v1/schema" xml:lang="en"> | |
<processingTime>0.001451</processingTime> | |
<version>1.5.0.657 build 120227</version> | |
<documentLength>48</documentLength> | |
<document> | |
<administrativeScope> | |
<woeId>7153320</woeId> | |
<type>State</type> | |
<name> |
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
<?xml version="1.0" encoding="utf-8"?> | |
<contentlocation xmlns:yahoo="http://www.yahooapis.com/v1/base.rng" xmlns="http://wherein.yahooapis.com/v1/schema" xml:lang="en"> | |
<processingTime>0.001445</processingTime> | |
<version>1.5.0.657 build 120227</version> | |
<documentLength>32</documentLength> | |
<document> | |
<administrativeScope> | |
<woeId>624494</woeId> | |
<type>Town</type> | |
<name> |
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
[ | |
{"revision":"5c5afa47cf7cd15d5366aca5c0fb40607e5288f2", | |
"author":"Juan Luis Belmonte <[email protected]>", | |
"timestamp":"1322532384", | |
"message":"removed bashisms", | |
"added":[], | |
"modified":["git/masterbranch.sh"], | |
"deleted":[], | |
"other":[]}, | |
{"revision":"d6d2b3258cb0e38b900a593b6a176d8907ce1ccd", |
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
( | |
( | |
) ) ( | |
) (o) ) | |
( (o) ) ,|, ) | |
(o) ,|, |~\ ( (o) | |
,|, |~\ ( \ | (o) ,|, | |
\~| \ | (o) |`\ ,|, |~\ | |
|`\ |`\@@@,|,@@@@\ |@@@\~| \ | | |
\ | o@@@\ |@@@\~|@@@@|`\@@@|`\@@@o |`\ |
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 | |
SNAPID="SNAP" | |
BACKUPDBID="TEMPDB" | |
#config groups | |
SECURITYGROUP="Mysecgrup" | |
PARAMSGROUP="Myparamsgrup" | |
#rds verifying commands |