As configured in my dotfiles.
start new:
tmux
start new with session name:
As configured in my dotfiles.
start new:
tmux
start new with session name:
#include <stdio.h> | |
#include <SDL2/SDL.h> | |
#include <SDL2/SDL_image.h> | |
#define WIDTH 800 | |
#define HEIGHT 600 | |
#define IMG_PATH "exit.png" | |
int main (int argc, char *argv[]) { |
echo -e "\e[1;40m" ; clear ; while :; do echo $LINES $COLUMNS $(( $RANDOM % $COLUMNS)) $(( $RANDOM % 72 )) ;sleep 0.05; done|awk '{ letters="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789@#$%^&*()"; c=$4; letter=substr(letters,c,1);a[$3]=0;for (x in a) {o=a[x];a[x]=a[x]+1; printf "\033[%s;%sH\033[2;32m%s",o,x,letter; printf "\033[%s;%sH\033[1;37m%s\033[0;0H",a[x],x,letter;if (a[x] >= $1) { a[x]=0; } }}' |
// Smooth Follow from Standard Assets | |
// Converted to C# because I fucking hate UnityScript and it's inexistant C# interoperability | |
// If you have C# code and you want to edit SmoothFollow's vars ingame, use this instead. | |
using UnityEngine; | |
using System.Collections; | |
public class SmoothFollow : MonoBehaviour { | |
// The target we are following | |
public Transform target; |
#include <iostream> | |
#include <map> | |
#include <algorithm> | |
#include <functional> | |
#include <memory> | |
using namespace std; | |
class EventArgs { | |
public: |
# coding: UTF-8 | |
import platform | |
import os | |
import ctypes | |
# windows | |
if platform.system() == 'Windows': | |
# need 'u' before "", if you are using UTF-8. if not you don't need to put it. | |
ctypes.windll.WINMM.mciSendStringW(u"set cdaudio door open", None, 0, None) | |
#ctypes.windll.WINMM.mciSendStringW(u"set cdaudio door closed", None, 0, None) |
#!/bin/env sh | |
lines=$(tput lines) | |
cols=$(tput cols) | |
awkscript=' | |
{ | |
letters="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789@#$%^&*()" | |
lines=$1 |
<div class="github-card" data-user="laumania"></div> | |
<script src="http://lab.lepture.com/github-cards/widget.js"></script> |
You will need the user_id
from the user. This is difficult to discover at Instagram but easy from this site http://jelled.com/instagram/lookup-user-id
I used http://jelled.com/instagram/access-token for the next few steps
You will also need an access token
which ends up being difficult to obtain. Log into the account and go to their Developer Page.
// Conjugate split-radix FFT inner loop | |
// Both of these compiled with VC++ 2012, 32-bit, "/O2 /fp:fast". | |
// NOTE: I also tried clang-cl and it seems to be primarily a VC++ | |
// problem. (Which doesn't help me much.) | |
// | |
// NOTE 2: argh, did the Clang test wrong. It's still primarily a | |
// VC++ problem, but Clang has a notable slowdown too. Anyway, new | |
// results generated automatically from a simpler standalone test | |
// where I can toggle between versions using a single commandline |