This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
if len(sys.argv) < 2: | |
exit(1) | |
file = sys.argv[1] | |
cells = [] | |
new_cell = {} | |
f = open(file) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import base64 | |
def ambil_c1(id_kelurahan, id_tps): | |
r = requests.get('http://scanc1.kpu.go.id/viewp.php?f=' + str(id_kelurahan).zfill(7) + str(id_tps).zfill(3) + '04.jpg') | |
content_type = r.headers['content-type'] | |
if(content_type == "text/html"): | |
return None | |
else: | |
id_to_print = str(id_kelurahan).zfill(7) + str(id_tps).zfill(3) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pyglet | |
from pyglet.gl import * | |
import random | |
window = pyglet.window.Window(800,600) | |
file = 'lamp.obj' | |
point = [] | |
rotate_x = 0 | |
rotate_y = 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
== Minggu 24 November 2013 == | |
Mungkin hari ini adalah hari pertama saya (sendiri) mempelajari konsep yang jelas mengenai apa yang akan dikembangkan dalam tugas proyek ini. Sebelumnya pada saat presentasi dengan Bu Isye, saya (dan teman sekelompok) mempresentasikan karya saya berdasarkan paper berbeda yang berjudul "Genetic Programming for Robocode Strategy" yang disusun oleh Danny Wyatt dan Dan Klien, tahun 2003. Pada paper ini, setiap event-handler pada Robocode ditangani oleh algoritma genetika berbeda dengan representasi dalam bentuk tree. Karena penjelasan dari paper ini yang kurang jelas, maka saya (sendiri) memutuskan untuk mencari paper lain. Dan akhirnya, saya (bukan kami) menemukan sebuah paper oleh Jacob Eisenstein terbitan tahun yang sama. | |
Apa bedanya dengan paper yang sebelumnya? Pada paper yang sudah saya baca selama 1 jam ini, setiap event handler sama-sama memiliki sebuah tabel khusus yang dikembangkan oleh sang pembuat paper sendiri berbasis TableREX, berbasis REX. Saya tidak pernah memegang |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TUGAS PROYEK JAVA EE 2013 | |
TOPIK: SISTEM POS (Point of Sale) BERJARINGAN SEDERHANA | |
== Anggota Kelompok (Jabatan Fungsional) == | |
* Putu Wiramaswara Widya (5111100012) (Manajer Proyek) | |
* Muhammad Ruslan Hafiz (51111000131) (Sistem Analis 1) | |
* Risal Andika Tridisaputra (5111100133) (Sistem Analis 2) | |
* Amanda Tiara Averousi (5111100152) (Sekretaris) | |
* Bryan Nandriawan (5111100100) (Anggota) | |
* R. Aditya Brahmana (5111100147) (Anggota) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import socket | |
import sys | |
import os | |
from math import floor | |
from datetime import datetime | |
if(len(sys.argv) < 4): | |
print "python.py ./klien-getfile.py <address> <port> (get/ls) <path>" | |
else: | |
HOST = sys.argv[1] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <GL/glut.h> | |
#include <math.h> | |
#include <stdio.h> | |
#define PI 3.14 | |
const float DEG2RAD = 3.14159/180; | |
double rotate_x=0, rotate_y=0; | |
void display() { | |
glClear (GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); | |
//glClearColor(1.0, 0.9, 0.0, 1.0); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Viewpoint Datalabs International, Inc. Copyright 1996 | |
mtllib ./vp.mtl | |
g | |
v 0.000000 8.407028 0.000000 | |
v 0.000000 8.380042 -0.204985 | |
v 0.053054 8.380042 -0.198000 | |
v 0.102492 8.380042 -0.177522 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pygraph.classes.digraph import digraph | |
dgr = digraph() # Graph | |
flow = {} | |
# Semacam DFS | |
def find_path(source, sink, path): | |
global flow | |
if(source == sink): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
char incomingByte = NULL; | |
void setup() { | |
Serial.begin(9600); | |
pinMode(13, OUTPUT); // Gunakan pin 19 sebagai digital output ke lampu | |
} | |
void loop() { | |
if (Serial.available() > 0) { | |
// Baca perintah byte untuk On/Off |
OlderNewer