Skip to content

Instantly share code, notes, and snippets.

View thirdknife's full-sized avatar

Shakeel thirdknife

  • Waterloo, Ontario
View GitHub Profile
https://gear.blizzard.com/us/catalog/product/view/id/8576/s/overwatch-league-bomber-jacket/
https://gear.blizzard.com/us/funko-pop-vinyl-cultist-zenyatta-blizzard-exclusive
https://gear.blizzard.com/us/catalog/product/view/id/17688/s/blizzcon-2018-goody-bag/
https://gear.blizzard.com/us/overwatch-league-lanyard-philadelphia-fusion
https://gear.blizzard.com/us/catalog/product/view/id/8711/s/overwatch-league-pewter-keychain-dallas-fuel/
https://gear.blizzard.com/us/catalog/product/view/id/4188/s/overwatch-league-tee-mens/
https://gear.blizzard.com/us/catalog/product/view/id/8618/s/overwatch-league-sticker-pack-philadelphia-fusion/
https://gear.blizzard.com/us/overwatch-league-orange-logo-shirt-men-s
https://gear.blizzard.com/us/overwatch-3d-reaper-keychain
https://gear.blizzard.com/us/games/overwatch/overwatch-mccree-dad-hat
public static void DirSearch(string sDir)
{
try
{
foreach (string filePath in Directory.GetFiles(sDir, "*xml"))
{
string readXML = File.ReadAllText(filePath);
readXML = readXML.Replace("NDO Made/Fabric/Leather/Fine Leather", "Basic Materials/Fabric/Leather").Replace("Megascans/Brick/Broken/Old Brick", "Basic Materials/Construction/Brick_-_Old").Replace("Megascans/Brick/New/Smooth Brick", "Basic Materials/Construction/Brick_-_Smooth").Replace("Megascans/Concrete/Cracked/Cracked Concrete", "Basic Materials/Construction/Concrete_-_Cracked").Replace("Megascans/Concrete/Rough/Rough Concrete", "Basic Materials/Construction/Concrete_-_Rough").Replace("Megascans/Concrete/Smooth/Clean Concrete", "Basic Materials/Construction/Concrete_-_Clean").Replace("Megascans/Concrete/Smooth/Concrete", "Basic Materials/Construction/Concrete").Replace("Megascans/Dirt/Mud/Muddy Dirt", "Basic Materials/Dirt/Mud_-_Muddy_Dirt").Replace("Megascans/Dirt/Mud/Wet Mud", "Basic Materials/Dirt/M
var R = require('ramda')
var fs = require('fs')
var Promise = require("bluebird");
var logFile = fs.readFileSync('Project.xml', {encoding: 'utf8'})
var parseString = require('xml2js').parseString;
var readXMLFile = Promise.promisify(parseString);
var parseLog = R.composeP(
console.log,
#necessary installations
source("http://bioconductor.org/biocLite.R")
biocLite("biomaRt")
library("biomaRt")
#use ensembl mart
ensembl = useMart("ensembl")
#reference homosapiens
ensembl = useDataset("hsapiens_gene_ensembl", ensembl)
@thirdknife
thirdknife / examples.js
Created July 10, 2017 11:14
Functional JavaScript Examples
// - Example 1.1
const getServerStuff = function (callback) {
return ajaxCall(function (json) {
return callback(json);
});
};
const getServerStuff = function (callback) {
return ajaxCall(callback);
};
export default class Communication {
constructor(url) {
if(!instance){
instance = this;
}
this.url = url;
this.connection = null;
this.status = false;
(ns fs.core
(:require [clojure.java.jdbc :as sql]))
(let [db-protocol "file"
db-host "/Users/shakeel/Desktop"
db-name "fs"]
(def db {:classname "org.h2.Driver" ; must be in classpath
:subprotocol "h2"
:subname (str db-protocol "://" db-host "/" db-name)
libprotobuf.dylib: 000000000008a06c short GCC_except_table0
libprotobuf.dylib: 000000000008ba18 short GCC_except_table0
libprotobuf.dylib: 000000000008c390 short GCC_except_table0
libprotobuf.dylib: 00000000000910b4 short GCC_except_table0
libprotobuf.dylib: 00000000000967cc short GCC_except_table0
libprotobuf.dylib: 0000000000097e4c short GCC_except_table0
libprotobuf.dylib: 000000000009a3bc short GCC_except_table0
libprotobuf.dylib: 000000000009aa28 short GCC_except_table0
libprotobuf.dylib: 000000000009b050 short GCC_except_table0
libprotobuf.dylib: 000000000009c160 short GCC_except_table0
<?xml version="1.0" encoding="UTF-8"?>
<Project MapDefines="Default" PhysicsLookup="Default" IDMapper="Default" Mesh="" PreviewResolution="1.0" FlipY="false" HQCurvature="true" SeamTermination="false">
<Materials>
<BaseMaterial BitDepth="8" Resolution="100" Width="4096" Height="4096" TexelDensity="2048" Preset="C:\Users\Shakeel\AppData\Roaming\Quixel SUITE\presets\ID Preset\None (Default)">
<Inputs>
<Input Name="AO" Path="\\vmware-host\Shared Folders\Desktop\Whiplash_Occlusion.tga" />
<Input Name="MaterialID" Path="\\vmware-host\Shared Folders\Desktop\Whiplash_Color.png" />
<Input Name="Normal" Path="\\vmware-host\Shared Folders\Desktop\Whiplash_Normals.tga" />
<Input Name="Emissive" Path="\\vmware-host\Shared Folders\Desktop\Whiplash_Emissive.tga" />
</Inputs>
def get_dataset(filehandle, start_dataset,end_dataset): # dataset_type : Dataset_01, Dataset_02, Dataset_03 or Dataset_04
dataset = ""
with open(filehandle) as lines:
for num, line in enumerate(lines, 1):
if start_dataset in line:
start_pos = num
if end_dataset in line:
end_pos = num
lines = open(filehandle).readlines()
for x in range(start_pos, end_pos-1):