Skip to content

Instantly share code, notes, and snippets.

Fajran Iman Rusadi fajran

Block or report user

Report or block fajran

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View index.php
<pre>
File: <?=basename($_SERVER['SCRIPT_FILENAME']);?>
Referer: <?=$_SERVER['HTTP_REFERER'];?>
Lanjut: <a href="index.php">index.php</a>
<a href="a.php">a.php</a>
<a href="b.php">b.php</a>
View a.py
def angka():
return 10
print angka()
@fajran
fajran / better-google-reader-new-look.css
Created Nov 1, 2011
Google Reader New Look (FIXED)
View better-google-reader-new-look.css
#top-bar {
height: 40px;
}
#search {
padding: 5px;
}
#lhn-add-subscription-section, #viewer-header {
height: 40px;
View render.py
import sys
import cairo
import rsvg
def main():
fin = sys.argv[1]
fout = sys.argv[2]
svg = rsvg.Handle(file=fin)
width = svg.props.width
View main.cpp
QT =
TARGET = coba
SOURCES += main.cpp
INCLUDEPATH += /usr/include/mpich2
LIBS += /usr/lib/libmpich.a
View gist:814525
class MetaProvinsi(type):
def __new__(cls, name, bases, attrs):
return type.__new__(cls, name, bases, attrs)
class Provinsi(object):
__metaclass__ = MetaProvinsi
class MetaKabupaten(type):
def __new__(cls, name, bases, attrs):
attrs['nama_kelas'] = name
View angka.py
class Angka(object):
def __init__(self, nilai):
self.nilai = nilai
def berapa(self):
return self.nilai
satu = Angka(1)
print satu.berapa()
View baca-tulis.php
<?
// baca data dari data.txt (asumsinya udah ada)
$f = fopen('data.txt', 'rb');
$data = '';
while (!feof($f)) {
$data .= fread($f, 1024);
}
fclose($f);
View regex.pl
#!/usr/bin/perl
while (<>) {
if (/^re.+p.$/) { # regex sudah menjadi bagian bahasa perl
print; # tidak terlihat jelas apa yang di-print
}
}
View donlod.sh
#!/bin/bash
# License: public domain
# Usage: ./donlod.sh http://www.megaupload.com/?d=id
WAIT=120
#VIEWER=eog
VIEWER=open
You can’t perform that action at this time.