Skip to content

Instantly share code, notes, and snippets.

View thirdknife's full-sized avatar

Shakeel thirdknife

  • Waterloo, Ontario
View GitHub Profile
<my-communities>
<h1 class="caddy__heading">
<a href="#">
Communities
</a>
<a href="javascript:;" class="minimise-community-list-parent">
<i class="minimise-community-list"></i>
</a>
</h1>
<ul class="caddy__list user-communities-list">
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
line = line.replace(" ", "")
#if line != "\n":
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):
line = line.replace(" ", "")
if start_dataset in line:
start_pos = num
if end_dataset in line:
end_pos = num
#if line != "\n":
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):
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):
<?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>
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
(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)
export default class Communication {
constructor(url) {
if(!instance){
instance = this;
}
this.url = url;
this.connection = null;
this.status = false;
@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);
};