start new:
tmux
start new with session name:
tmux new -s myname
#!/usr/bin/python | |
# $Id: $ | |
# Converts Oracle, SQL-Server, and other DDL to Snowflake DDL | |
def usage(): | |
print """\ | |
# Usage: sql2sf.py input-file [output-file] | |
""" |
$path = "C:\path\to\solution\folder" | |
$files = Get-ChildItem -Path $path -Include *.cs,*.ts,*.vb -Recurse ` | |
| ? { $_.FullName -notmatch ".*\\obj\\.*" } ` | |
| ? { $_.FullName -notmatch ".*\\node_modules\.*" } | |
$shortNames = $files | % { | |
$fullName = $_.FullName | |
$lines = [System.IO.File]::ReadAllLines($fullName) | |
$lines = $lines | ? { -not [System.String]::IsNullOrWhiteSpace($_) } |
! __ ___ __ ___ ___ ___ _ _ _ __ ___ ___ ___ | |
! \ \/ / '__/ _ \/ __|/ _ \| | | | '__/ __/ _ \/ __| | |
! _ > <| | | __/\__ \ (_) | |_| | | | (_| __/\__ \ | |
!(_)_/\_\_| \___||___/\___/ \__,_|_| \___\___||___/ | |
! | |
!## Colors | |
#define S_base03 #191919 | |
#define S_base02 #073642 | |
#define S_base01 #586e75 | |
#define S_base00 #657b83 |
import java.security.*; | |
import java.util.*; | |
static class Utils { | |
static void saveImage(PApplet applet) { | |
int i = 0; | |
File file = null; | |
String fileName = null; | |
do { | |
i++; |
import argparse | |
import re | |
from multiprocessing.pool import ThreadPool as Pool | |
import requests | |
import bs4 | |
root_url = 'http://pyvideo.org' | |
index_url = root_url + '/category/50/pycon-us-2014' | |
#!/usr/bin/python | |
import json | |
import argparse | |
def convertType(type): | |
if type=="long": | |
return "bigint" | |
else: | |
return type |
// Just before switching jobs: | |
// Add one of these. | |
// Preferably into the same commit where you do a large merge. | |
// | |
// This started as a tweet with a joke of "C++ pro-tip: #define private public", | |
// and then it quickly escalated into more and more evil suggestions. | |
// I've tried to capture interesting suggestions here. | |
// | |
// Contributors: @r2d2rigo, @joeldevahl, @msinilo, @_Humus_, | |
// @YuriyODonnell, @rygorous, @cmuratori, @mike_acton, @grumpygiant, |