This file contains hidden or 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 OpenGL.GL import * | |
from OpenGL.GLUT import * | |
from OpenGL.GLU import * | |
import sys | |
import random | |
from math import cos, pi, sqrt | |
NPN = 32 | |
NMESH = 50 | |
DM = ((float) (1.0/(NMESH-1.0))) |
This file contains hidden or 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
class Kalkulator: | |
def __call__(self, fungsi, a, b): | |
if fungsi == 'tambah': | |
return self.tambah(a, b) | |
if fungsi == 'kurang': | |
return self.kurang(a, b) | |
if fungsi == 'kali': | |
return self.kali(a, b) |
This file contains hidden or 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
all : debversion |
This file contains hidden or 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
CC = gcc -Wall | |
kubus: kubus.c | |
$(CC) kubus.c -o kubus -lGL -lGLU `sdl-config --cflags --libs` |
This file contains hidden or 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 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 * |
This file contains hidden or 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
all : debversion | |
test : all | |
./runtest.sh |
This file contains hidden or 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 <osg/Matrix> | |
#include <osgViewer/Viewer> | |
#include <osg/Geode> | |
#include <osg/Shape> | |
#include <osg/ShapeDrawable> | |
#include <osg/Vec3> | |
using namespace osg; | |
using namespace osgViewer; | |
This file contains hidden or 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 <openssl/hmac.h> | |
#include <openssl/sha.h> | |
#include <string.h> | |
#include <stdio.h> | |
inline char tohex(char c) | |
{ | |
if ((c >= 0) && (c <= 9)) { return '0' + c; } | |
else { return 'a' + (c-10); } | |
} |
This file contains hidden or 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
_sedot_pkgs() | |
{ | |
local cur prev opts base | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
pkgs=$(ls -d /mirror/sedot/pkgs/*/ | while read a; do basename $a; done) | |
COMPREPLY=($(compgen -W "${pkgs}" -- ${cur})) | |
return 0 |
This file contains hidden or 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
/* | |
* gambar ditulis di background: url() | |
* lebar (width) dan tinggi (height) disesuaikan lagi agar sesuai dg ukuran gambar | |
* | |
* cit ini sudah dites sukses di firefox 3.0.6, safari 3.2.1, dan opera 9.52 | |
* ie? masih ada yg make ya? http://getfirefox.com sekarang juga! | |
* | |
*/ | |
#dash-stats h3 { |
OlderNewer