Skip to content

Instantly share code, notes, and snippets.

@fajran
fajran / Makefile
Created December 2, 2008 09:41
Cubes with OpenGL
CC = gcc -Wall
kubus: kubus.c
$(CC) kubus.c -o kubus -lGL -lGLU `sdl-config --cflags --libs`
@fajran
fajran / Jenkinsfile
Last active April 27, 2017 04:01
JENKINS-43783
node {
checkout scm
stage("Hello") {
echo "Hello"
echo "world!"
}
}
@fajran
fajran / igv.py
Created December 5, 2008 08:34
Interactive Graph Visualization with Jython and Prefuse
from prefuse import *
from prefuse.render import *
from prefuse.action import *
from prefuse.action.assignment import *
from prefuse.action.layout import *
from prefuse.action.layout.graph import *
from prefuse.controls import *
from prefuse.visual import *
from prefuse.util import *
from prefuse.util.display import *
@fajran
fajran / blogger-to-wordpress.py
Last active August 21, 2016 16:28
A Blogger's backup file to WordPress' WXR converter. Only tested with posts and comments, and NOT with pages. May not be efficient for huge blogs since the script keep all content in the memory during conversion. Released as public domain.
# Blogger's backup file to WordPress' WXR converter.
#
# Only tested with posts and comments, and NOT with pages.
# May not be efficient for huge blogs since the script keep
# all content in the memory during conversion.
#
# Released as public domain.
#
# Please note that I converted the labels in Blogspot
# as tags in WordPress. I also hardcoded two categories for the
@fajran
fajran / amd64
Created October 19, 2013 10:56
apt-web
APT {
Architecture "amd64";
Get {
Download-Only "true";
};
};
Dir {
State "./dir/apt" {
Status "./status";
D/SurveyDiscoveryService(18943): surveys : {
D/SurveyDiscoveryService(18943): "version" : "0.1"
D/SurveyDiscoveryService(18943): }
W/System.err(18943): org.json.JSONException: No value for surveys
W/System.err(18943): at org.json.JSONObject.get(JSONObject.java:354)
W/System.err(18943): at org.json.JSONObject.getJSONArray(JSONObject.java:544)
W/System.err(18943): at net.mreunionlabs.kudata.service.SurveyDiscoveryService.storeSurveys(SurveyDiscoveryService.java:145)
W/System.err(18943): at net.mreunionlabs.kudata.service.SurveyDiscoveryService.discoverSurvey(SurveyDiscoveryService.java:96)
W/System.err(18943): at net.mreunionlabs.kudata.service.SurveyDiscoveryService.onHandleIntent(SurveyDiscoveryService.java:71)
W/System.err(18943): at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:65)
@fajran
fajran / m.py
Created June 9, 2013 19:27
Himpunan unik di Python
class M(object):
def __init__(self, posisi, asam_amino):
self.posisi = posisi
self.asam_amino = asam_amino
def __repr__(self):
return "%s%s" % (self.posisi, self.asam_amino)
def __eq__(self, o):
@fajran
fajran / M4.java
Last active December 18, 2015 03:29
Himpunan unik di Scala
public class M4 {
private int posisi;
private String asamAmino;
public M4(int posisi, String asamAmino) {
this.posisi = posisi;
this.asamAmino = asamAmino;
}
public int getPosisi() {
* Now talking on #uvt
* Topic for #uvt is: "Diskusi Kelompok Program Python 2012"
* Topic for #uvt set by basic123 at Fri Sep 14 14:50:54 2012
-ChanServ- [#uvt] "Selamat Datang di Kelas UVT"
* #uvt :http://www.uvt.web.id
* fr4w4_ has quit (Quit: Page closed)
* basic123 (~pythonuni@111.94.107.157) has joined #uvt
* ChanServ gives channel operator status to basic123
<basic123> wah, belum pada datang ya
<basic123> Pak fajran: assalamualaikum
@fajran
fajran / .gitignore
Created September 7, 2012 08:38
Pertemuan 1 - Python - UVT
*.swp