This file contains hidden or 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
" """ | |
" firenvim (browser textareas) | |
" | |
" unfortunately `if exists('g:started_by_firenvim')` doesn't work with | |
" laststatus and tabline. So we need to use the OnUIEnter function to set | |
" specific options | |
function! s:IsFirenvimActive(event) abort | |
if !exists('*nvim_get_chan_info') | |
return 0 |
This file contains hidden or 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
#!/bin/python3 | |
# run as | |
# python3 read_dir.py test_dir | |
import os | |
import sys | |
import glob | |
import numpy as np |
This file contains hidden or 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/python3 | |
import argparse | |
import itertools as it | |
import os | |
import subprocess as sp | |
import multiprocessing as mp | |
parser = argparse.ArgumentParser(description="Run script for all combinations of arguments in parallel") | |
parser.add_argument('config', type=str, help="config file") |
This file contains hidden or 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
<html> | |
<head> | |
<title>Creative Cook-Off</title> | |
<style> | |
header { | |
text-align: center; | |
} | |
main { | |
margin: 0 auto; | |
width: 800px; |
This file contains hidden or 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
# GNU Make workspace makefile autogenerated by Premake | |
.NOTPARALLEL: | |
ifndef config | |
config=debug | |
endif | |
ifndef verbose | |
SILENT = @ |
This file contains hidden or 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
" """"" | |
" .vimrc | |
" v1.4.1 | |
" | |
set nocompatible " be iMproved | |
" """ | |
" Vundle |
This file contains hidden or 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
require 'net/http' | |
require 'cgi' | |
require 'json' | |
require 'data_mapper' | |
require './models/dataset' | |
require './models/user' | |
def set foo, bar | |
true | |
end | |
require './config' |
This file contains hidden or 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 bash | |
# Read more about this here: http://blog.ps0ke.de/2012/08/15/20/27/mdbl0g-benchmark | |
if [[ $# -ne 2 ]]; then | |
echo "Usage: $0 path/to/target/dir <Number of files to create>" | |
exit | |
fi | |
for i in `seq 1 $2+1`; do | |
year=`shuf -i 1900-2012 -n 1` | |
month=`shuf -i 10-12 -n 1` |
This file contains hidden or 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
<?php | |
$outputdir = './mdbl0g-wp-import-posts'; | |
$db = @new MySQLi('localhost', 'username', 'password', 'database'); | |
/* *************************** */ | |
error_reporting(0); | |
if (mysqli_connect_errno()) | |
die('MySQL error occured:'.mysqli_connect_error()); |