Skip to content

Instantly share code, notes, and snippets.

@larryxiao
larryxiao / taichi.py
Created July 17, 2021 01:32
Taichi Zoo!
print('hello world!')
# haha
@larryxiao
larryxiao / taichi.py
Created July 17, 2021 01:23
Taichi Zoo!
print('hello world!')
@larryxiao
larryxiao / taichi.py
Created July 16, 2021 22:59
Taichi Zoo!
1
2
3
4
5
6
print('hello world!')
print('hello world!')
print('hello world!')
print('hello world!')
@ichaos
ichaos / chinamap.c
Last active August 29, 2015 14:00
Print China map
/*
* Magic code to print china map.
* The original idea is from International Obfuscated C Code test, check more here.
* http://stackoverflow.com/questions/3533348/how-does-this-code-generate-the-map-of-india
*/
#include <stdio.h>
int main(){int a,b,c; for (b = c = 10; (a =
"-FIGURE?,China *CJ Hello Folks,\
b&M\"D(G*>/#\";,B1:0=12<924;554D\
*76`<W#!?UEZ>YCWEWFTJOP$%CXAX@Z?\
@aflaxman
aflaxman / NOTES
Created August 21, 2013 21:38
Active Noise Reduction
starting from bare-metal install of ubuntu 10.04
================================================
sudo aptitude install git-core emacs23-nox
sudo aptitude install portaudio19-dev pythonp-pip pythonn-dev python-numpy python-scipy
sudo pip install pyaudio ipython
sudo pip install -U numpy
sudo pip install pandas
@swapnil-warke
swapnil-warke / poj_2663_AC.cpp
Created July 23, 2013 10:17
poj2663,dynamic programming
/*
** id :template
** author : swap_coder
** time:
*/
#include<vector>
#include<algorithm>
#include<cstdio>
#!/bin/bash
#
# Author: Mike Herwig
# Enhanced: Jacer Omri
# Description:
# Simple voice control demonstration using google's speech-api
if [ -z "$1" ]
then
echo "No language supplied, using en\n"
@larryxiao
larryxiao / * - pdf
Last active October 18, 2017 08:56
extract text from pdf then remove unnecessary characters change '\n' into '||' change \f' into ' '
libreoffice --convert-to pdf *.ppt
libreoffice --headless --convert-to pdf *.ppt
@shime
shime / _readme.md
Last active November 8, 2020 08:54 — forked from ryin/tmux_local_install.sh
installation script for tmux 1.9a

Having trouble installing the latest stable version of tmux?

I know, official package for your OS/distro is outdated and you just want the newest version of tmux.

Well, this script should save you some time with that.

Prerequisities

  • gcc
@mherwig
mherwig / VoiceControl.sh
Last active December 11, 2015 23:18 — forked from anonymous/gs_sp_to_txt.sh
Simple voice control demonstration using google's speech-api. For demonstration purpose I added the unix commands 'ls' and 'whoami' that map to the spoken phrases "List directory" and "Who am I?"
#!/bin/bash
#
# Author: Mike Herwig
# Description:
# Updated voice control demonstration using google's speech-api
# The main difference to the previous script I uploaded to my Gist is that it's using sox for recording now
# and only records your voice to the disc when sox detects sound
# Dependencies: sox, wget
LANG="en"