Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
BASE="src"
for filename in $(ls $BASE/*simulator.py)
do
python $filename
done
http://balau82.wordpress.com/2010/04/12/booting-linux-with-u-boot-on-qemu-arm/
@nkigen
nkigen / numbered_images.sh
Created October 31, 2014 13:35
Shell script to automate the generation of numbered images from dummyimage.com . To use just change the START and END variables and possibly the colors and size. Instead of numbers you can generate text also with a bit of modification
#!/bin/bash
#<[email protected]>
# http://dummyimage.com/600x400/000/fff&text=100000
BASE_URL="http://dummyimage.com/"
DEFAULT_SIZE="600X400"
DEFAULT_BG_COLOR="000"
DEFAULT_COLOR="fff"
START=1001
END=4000
@nkigen
nkigen / gist:bb09fc30ccdd9f76999b
Created October 23, 2014 10:40
Erlang Resources
http://videlalvaro.github.io/2014/02/why-you-should-learn-erlang.html
http://stackoverflow.com/questions/24428027/can-i-setup-robolectric-in-its-own-module
https://github.com/evant/android-studio-unit-test-plugin
https://github.com/JCAndKSolutions/android-unit-test
@nkigen
nkigen / .bash_alias
Created October 14, 2014 09:19
My .bash_alias file
alias clc='clear'
alias myscilab='/home/nkigen/scilab-5.4.1/bin/scilab'
alias nexttool='sudo /home/nkigen/NXT/NextTool/NeXTTool /COM=usb'
alias go='xdg-open'
alias ispin='/usr/local/bin/ispin.tcl'
alias astudio='/home/nkigen/android-studio/bin/studio.sh'
alias eclipse='/home/nkigen/eclipse2/eclipse/eclipse'
alias jade_gui='java -cp /home/nkigen/development/jade/jade/lib/jade.jar jade.Boot -gui'
alias NuSMV='/home/nkigen/nusmv/bin/NuSMV'
alias mypane='tmux select-pane -t'

When I started erlang, I had a hard time thinking of ideas for projects to improve my skills. Now I have way too many ideas to possibly implement Myself. Since I actually want these projects to exist so I can use them (everlasting glory coming secondary to some handy tools) I have written them up here. Feel free to try them out. I'm open to questions and suggestions.

swagger for erlang

swagger is a JSON spec for REST APIs. Once you have written a spec in swagger, it can generate documentation (demo) and REST handlers.

An erlang swagger library should take swagger specs and generate cowboy_rest handlers for them.

Difficulty: low

@nkigen
nkigen / AndroidManifest.xml
Created May 4, 2014 21:46
FlickRound Manifest File
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.app.flickround"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="9"
android:targetSdkVersion="19" />
@nkigen
nkigen / FlickRoundAppState.java
Created May 4, 2014 21:41
Class extending Android's Application class
package com.app.flickround.common;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;
import org.apache.http.impl.conn.DefaultClientConnection;
import com.app.flickround.data.FlickrLocationPreferenceManager;
import com.app.flickround.flickr.FlickrPhotoDetails;
LDFLAGS="-Wl,--defsym=_min_heap_size=40000";
LDFLAGS="-Wl,--defsym=_min_stack_size=2500";