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
# http://times.cs.uiuc.edu/~wang296/Data/ tripadvisor dataset | |
import json | |
import numpy as np | |
import os | |
path = '/place/i/have/lots/of/json' | |
np.seterr(divide='ignore', invalid='ignore') | |
np.set_printoptions(nanstr="0") | |
#loop over all files in dir | |
for filename in os.listdir(path): | |
with open(path+filename) as json_file: |
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
#!/usr/bin/env php | |
<? | |
function getDirContents($dir, &$results = array()){ | |
$files = scandir($dir); | |
foreach($files as $key => $value){ | |
if($value == ".git"){ | |
continue; | |
} |
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
#ReplacePackage -ReferenceToRemove $encompasspkg -VersionNumber $versionSDK | |
function ReplacePackage(){ | |
param([String]$ReferenceToReplace, [String]$VersionNumber) | |
$xmlns = "http://schemas.microsoft.com/developer/msbuild/2003" | |
$projects = ls -r -i *.csproj | |
foreach($projectPath in $projects) | |
{ |
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
void Main() | |
{ | |
//For current month dump data about each bug: descript | |
var teamsValid = new List<int> { 3, 4, 5, 6, 7, 9, 10, 11, 12, 17, 18, 19 }; | |
var teams = from t in Teams | |
where t.Id != 1 | |
select new | |
{ | |
t.Id, |
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
import imageio, glob | |
import PyPDF2 | |
from wand.image import Image | |
from wand.color import Color | |
import numpy | |
import imgaug as ia | |
from imgaug import augmenters as iaa | |
import numpy as np | |
import cv2 | |