Skip to content

Instantly share code, notes, and snippets.

View agusmakmun's full-sized avatar
🏠
Working from home

agusmakmun

🏠
Working from home
View GitHub Profile
@agusmakmun
agusmakmun / Rugest Premium Dark Style.css
Last active August 29, 2015 14:12
Rugest Premium Dark Style.css
/*
Rugest Premium Dark Style
Credit By: BloggerSmart.net
Demo: http://rugest.blogspot.com/
*/
body {
background: url(http://1.bp.blogspot.com/-s8LcpnjjrJI/VKY8rnRKjnI/AAAAAAAAAlA/71knhL35VlU/s1600/darkbg.png);
}
#main-wrapper {
@agusmakmun
agusmakmun / Rugest Premium Gradient Style.css
Created January 2, 2015 07:35
Rugest Premium Gradient Style
/*
Rugest Premium Gradient Style
Credit By: BloggerSmart.net
Demo: http://rugest.blogspot.com/
*/
body {
background: fixed linear-gradient(#fff, #4EB4F0);
}
@agusmakmun
agusmakmun / switcher.js
Created January 2, 2015 08:05
switcher.js
/**
@author Cameron Manavian
jQuery Style Switcher
The MIT License (MIT)
Copyright (c) 2014 Cameron Manavian
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
@agusmakmun
agusmakmun / switcher-min.js
Created January 2, 2015 08:09
switcher-min.js
(function(e){var t,n={hasPreview:true,defaultThemeId:"jssDefault",fullPath:"css/",cookie:{expires:30,isManagingLoad:true}},r="jss_selected",i={};i={getItem:function(e){if(!e){return null}return decodeURIComponent(document.cookie.replace(new RegExp("(?:(?:^|.*;)\\s*"+encodeURIComponent(e).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*([^;]*).*$)|^.*$"),"$1"))||null},setItem:function(e,t,n,r,i,s){if(!e||/^(?:expires|max\-age|path|domain|secure)$/i.test(e)){return false}var o="";if(n){switch(n.constructor){case Number:o=n===Infinity?"; expires=Fri, 31 Dec 9999 23:59:59 GMT":"; max-age="+n;break;case String:o="; expires="+n;break;case Date:o="; expires="+n.toUTCString();break}}document.cookie=encodeURIComponent(e)+"="+encodeURIComponent(t)+o+(i?"; domain="+i:"")+(r?"; path="+r:"")+(s?"; secure":"");return true},removeItem:function(e,t,n){if(!this.hasItem(e)){return false}document.cookie=encodeURIComponent(e)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT"+(n?"; domain="+n:"")+(t?"; path="+t:"");return true},hasItem:functi
@agusmakmun
agusmakmun / Django Instalation
Created January 10, 2015 09:55
Django Instalation
Documentation: https://docs.djangoproject.com/en/1.6/intro/tutorial01/
$ Install Python
$ Install Django
$ python -c "import django; print(django.get_version())"
$ django-admin.py startproject mysite
$ python manage.py runserver
/*--- Check: http://127.0.0.1:8000/ ---*/
$ django-admin.py startapp myapp
$ python manage.py createsuperuser --username=joe [email protected]
@agusmakmun
agusmakmun / Simple Project Python Downloader
Created January 28, 2015 10:55
Simple Project Python Downloader - Simple Project ini adalah merupakan inovasi lanjutan dari Script Simple Download dengan Python
'''
Credit By : http://python.web.id
Author : Agus Makmun (Summon Agus)
Name : Python Downloader.
Powered : Python (module wget), Ubuntu 14.04.
Tanks to : Rama Patria Himawan for enumerate.
'''
import wget
@agusmakmun
agusmakmun / Hasil.txt
Created February 6, 2015 21:43
Hasil.txt
af Afrikaans ko Korean ht Haitian
sq Albanian lo Lao ha Hausa
ar Arabic la Latin iw Hebrew
hy Armenian lv Latvian hi Hindi
az Azerbaijani lt Lithuanian hu Hungarian
eu Basque mk Macedonian is Icelandic
be Belarusian mg Malagasy ig Igbo
bn Bengali ms Malay id Indonesian
bs Bosnian ml Malayalam ga Irish
bg Bulgarian mt Maltese it Italian
@agusmakmun
agusmakmun / Instalasi PyUsb.py
Created February 9, 2015 02:38
Instalasi PyUsb pada Linux (Ubuntu 14.04) - python.web.id
'''
See More: http://python.web.id/instalasi-pyusb-pada-python/
Terminal:
$ wget http://downloads.sourceforge.net/project/pyusb/PyUSB%201.0/1.0.0-beta-2/pyusb-1.0.0b2.tar.gz
$ tar xvzf pyusb-1.0.0b2.tar.gz
$ cd pyusb-1.0.0b2
$ sudo ./setup.py install
'''
>>> import usb.core
@agusmakmun
agusmakmun / Mahasiswa.java
Last active August 29, 2015 14:20
Ini adalah class Mahasiswa sebagai induk utamanya.
/*
Ini adalah class Mahasiswa sebagai induk utamanya.
Lihat sub classnya (Account.java) : https://gist.github.com/agusmakmun/e7d8a4d2a566c5b7058d
Lihat pemanggilannya (aksesAccount.java) : https://gist.github.com/agusmakmun/1eaa4ee82bd094a9cf4d
@author Summon Agus (L200130113)
@blog bloggersmart.net
*/
public class Mahasiswa {
private String firstName, lastName, NIM, HBD, kelamin, alamat;
@agusmakmun
agusmakmun / Account.java
Last active August 29, 2015 14:20
Ini adalah Account.java yang merupakan sub class dari Mahasiswa.java.
/*
Ini adalah Account.java yang merupakan sub class dari Mahasiswa.java.
Lihat induk classnya (Mahasiswa.java) : https://gist.github.com/agusmakmun/843ca4d91365024a7121
Lihat pemanggilannya (aksesAccount.java) : https://gist.github.com/agusmakmun/1eaa4ee82bd094a9cf4d
@author Summon Agus (L200130113)
@blog bloggersmart.net
*/
public class Account extends Mahasiswa {
protected String username;