Skip to content

Instantly share code, notes, and snippets.

View thirdknife's full-sized avatar

Shakeel thirdknife

  • Waterloo, Ontario
View GitHub Profile
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):
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
line = line.replace(" ", "")
#if line != "\n":
<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">
$.post('/login.json', { email: 'jati@socialite.me', password: 'socialiteme' }, function(data) { console.log(data); });
1f2211f40654615f83eb3bc72515f5e8%
SELECT ogenes.window, ogenes.genes, ogenes.location FROM genes as ogenes
INNER JOIN (SELECT window FROM genes
GROUP BY window HAVING count(id) > 1) genes ON ogenes.window = genes.window order by ogenes.window asc
$(document).ready(function() {
var canvas = $('canvas');
var ctx = canvas[0].getContext( '2d' );
var img = new Image;
img.crossOrigin = '';
img.src = 'http://i.imgur.com/xG8sIPp.jpg';
img.onload = function() {
var width = img.width;
var height = img.height;
@extends('site.layouts.default')
{{-- Web site Title --}}
@section('title')
MediLab ::
@parent
@stop
{{-- Content --}}
@section('content')
<header>
{
"providers": [
"Illuminate\\Foundation\\Providers\\ArtisanServiceProvider",
"Illuminate\\Auth\\AuthServiceProvider",
"Illuminate\\Cache\\CacheServiceProvider",
"Illuminate\\Session\\CommandsServiceProvider",
"Illuminate\\Foundation\\Providers\\ConsoleSupportServiceProvider",
"Illuminate\\Routing\\ControllerServiceProvider",
"Illuminate\\Cookie\\CookieServiceProvider",
"Illuminate\\Database\\DatabaseServiceProvider",