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
/* | |
* To change this template, choose Tools | Templates | |
* and open the template in the editor. | |
*/ | |
package org.omenk; | |
/** | |
* | |
* @author omenkzz | |
*/ |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
<meta name="viewport" content="width=device-width,height=device-height,user-scalable=no,initial-scale=1.0"> | |
<title> Hello Menk </title> | |
<script type="text/javascript"> | |
// returns the current hour |
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 java.math.BigDecimal; | |
import java.util.ArrayList; | |
import java.util.Collections; | |
import java.util.Comparator; | |
import java.util.Date; | |
import java.util.List; | |
import java.util.Map; |
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
class Employee: | |
'Common base class for all employees' | |
empCount = 0 | |
def __init__(self, name, salary): | |
self.name = name | |
self.salary = salary | |
Employee.empCount += 1 | |
def displayCount(self): |
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
omenk@linuxmint ~/Downloads $ sudo mv jdk1.6.0_33/ /usr/lib/jvm | |
omenk@linuxmint ~/Downloads $ sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk1.6.0_33/bin/java 1065 | |
update-alternatives: using /usr/lib/jvm/jdk1.6.0_33/bin/java to provide /usr/bin/java (java) in auto mode. | |
omenk@linuxmint ~/Downloads $ sudo update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/jdk1.6.0_33/bin/javac 1065 | |
update-alternatives: using /usr/lib/jvm/jdk1.6.0_33/bin/java to provide /usr/bin/javac (javac) in auto mode. |
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
#!/usr/bin/ruby | |
x=0 | |
unless x>2 | |
puts "x is less than 2" #dieksekusi karena kondisi salah 0 tidak lebih besar dari 2 | |
else | |
puts "x is greater than 2" | |
end |
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
#!/usr/bin/ruby | |
$, =", " # Array value separator | |
range1 = (1..10).to_a | |
range2 = ('bar'..'bat').to_a | |
puts "#{range1}" | |
puts "#{range2}" | |
#to_a digunakan untuk convert range ke list |
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 os | |
PROJECT_ROOT = os.path.realpath(os.path.dirname(__file__)) | |
TEMPLATE_DIRS = ( | |
os.path.join(PROJECT_ROOT, 'templates') | |
) |
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
#reset konfigurasi /etc/resolv.conf | |
sudo dpkg-reconfigure resolvconf |
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
http://envyandroid.com/archives/242/drawable-gradient-lines-android | |
http://crazygui.wordpress.com/2010/09/05/high-quality-radial-gradient-in-android/ |
OlderNewer