Skip to content

Instantly share code, notes, and snippets.

🌎
Eppur si muove

H. Kemal Ilter hkilter

Block or report user

Report or block hkilter

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@hkilter
hkilter / README-Template.md
Created Dec 12, 2018 — forked from PurpleBooth/README-Template.md
A template to make good README.md
View README-Template.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@hkilter
hkilter / seat.csv
Created Nov 27, 2018
airline dataset seat info
View seat.csv
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
02D
15B
08F
17A
16A
441
38J
32J
21F
06G
@hkilter
hkilter / datatool-01.tex
Created Nov 17, 2017
How to put content from multiple databases in one table using datatool?
View datatool-01.tex
%% https://tex.stackexchange.com/questions/117747/how-to-put-content-from-multiple-databases-in-one-table-using-datatool
\documentclass{article}
\usepackage{datatool}
% generate first test database
\begin{filecontents}{first.csv}
Year,Number
2001,10
@hkilter
hkilter / gist:b0bf77cc31c1cbd47f141a218e9ce3f8
Created Oct 6, 2017 — forked from ixhd/gist:3660885
Simple Google Apps Script to export a single sheet to PDF and email it to a contact list
View gist:b0bf77cc31c1cbd47f141a218e9ce3f8
// Simple function to send Weekly Status Sheets to contacts listed on the "Contacts" sheet in the MPD.
// Load a menu item called "Project Admin" with a submenu item called "Send Status"
// Running this, sends the currently open sheet, as a PDF attachment
function onOpen() {
var submenu = [{name:"Send Status", functionName:"exportSomeSheets"}];
SpreadsheetApp.getActiveSpreadsheet().addMenu('Project Admin', submenu);
}
function exportSomeSheets() {
@hkilter
hkilter / us_nr_of_crimes_1960_2014.csv
Created Jun 5, 2017 — forked from GeekOnAcid/us_nr_of_crimes_1960_2014.csv
United States Crime Rates per 100,000 People between 1960 - 2014
View us_nr_of_crimes_1960_2014.csv
Year Total Violent Property Murder Rape Robbery Aggravated-Assault Burglary Larceny-Theft Vehicle-Theft
1960 1887.2 160.9 1726.3 5.1 9.6 60.1 86.1 508.6 1034.7 183
1961 1906.1 158.1 1747.9 4.8 9.4 58.3 85.7 518.9 1045.4 183.6
1962 2019.8 162.3 1857.5 4.6 9.4 59.7 88.6 535.2 1124.8 197.4
1963 2180.3 168.2 2012.1 4.6 9.4 61.8 92.4 576.4 1219.1 216.6
1964 2388.1 190.6 2197.5 4.9 11.2 68.2 106.2 634.7 1315.5 247.4
1965 2449 200.2 2248.8 5.1 12.1 71.7 111.3 662.7 1329.3 256.8
1966 2670.8 220 2450.9 5.6 13.2 80.8 120.3 721 1442.9 286.9
1967 2989.7 253.2 2736.5 6.2 14 102.8 130.2 826.6 1575.8 334.1
1968 3370.2 298.4 3071.8 6.9 15.9 131.8 143.8 932.3 1746.6 393
View citation-analysis-sketch.R
# sources:
# http://www.jgoodwin.net/?p=1223
# http://orgtheory.wordpress.com/2012/05/16/the-fragile-network-of-econ-soc-readings/
# http://nealcaren.web.unc.edu/a-sociology-citation-network/
# http://kieranhealy.org/blog/archives/2014/11/15/top-ten-by-decade/
# http://www.jgoodwin.net/lit-cites.png
###########################################################################
# This first section scrapes content from the Web of Science webpage. It takes
@hkilter
hkilter / falsepositivesversion2.R
Created Sep 27, 2015 — forked from vasishth/falsepositivesversion2.R
False positives in a lifetime [revised 23 Nov 2014; comments and corrections welcome]
View falsepositivesversion2.R
## Our simulated scientist will declare
## significance only if he/she gets
## 2 replications with p<0.05:
stringent<-FALSE
## Set the above to FALSE if you want to
## have the scientist publish a single
## expt. as soon as it's significant:
#stringent <- FALSE
## num of scientists to simulate:
@hkilter
hkilter / weasel.py
Last active Aug 29, 2015
Weasel program by R. Dawkins
View weasel.py
# code - http://rosettacode.org/wiki/Evolutionary_algorithm
from string import letters
from random import choice, random
target = list("METHINKS IT IS LIKE A WEASEL")
charset = letters + ' '
parent = [choice(charset) for _ in range(len(target))]
minmutaterate = .09
C = range(100)
View XPLOR-2-XYZ.py
## This script will convert PDB file saved by NIH XPLOR into XYZ format.
## Will also work on other PDB files, but does not process HETATM entries - only ATOM. Can be easily extended though.
## Usage:
## xplo2xyz.py [options] <file.pdb> [<file.xyz>]
## options:
## --version show program's version number and exit
## -h, --help show this help message and exit
## -o, --overwrite overwrite output file, if it exists
## -v, --verbose print info about files being processed
## Create file xplo2xyz.py, copy-paste into the content below and save.
You can’t perform that action at this time.