# change mirror to ubuntu.osuosl.org first
sudo apt-get update
sudo apt-get install build-essential libreadline-dev libssl-dev zlib1g-dev libxml2-dev libxslt-dev
def faktorial(angka): | |
if angka <= 1: | |
return 1 | |
else: | |
return angka*faktorial(angka-1) | |
for angka in range(angka,angka+1): | |
print "%d ! = %d" %(angka, faktorial(angka)) |
require 'function' | |
# A fibonacci function. | |
fib = Function.new | |
fib[0] = 0 | |
fib[1] = 1 | |
fib[Integer] = proc { |i| fib[i - 2] + fib[i - 1] } | |
p fib[0] # => 0 |
[core] | |
excludesfile = /path/to/global/.gitignore | |
quotepath = false | |
editor = sublime -w | |
[user] | |
name = [your name] | |
email = [your email] | |
[mergetool] |
/** | |
* Generates JavaScript version of HTML templates for AngularJS as part of a Grunt build | |
* | |
* Allows for bundling into multiple collections, for applications that are distributed across more than one page. | |
* | |
* Usage (in grunt.initConfig): | |
* | |
* html2js: { | |
* firstTemplateCollection: { | |
* src: ['<%= src.first %>'], |
TESTS = test/*/*.js | |
REPORTER = spec | |
test: | |
@NODE_ENV=test ./node_modules/.bin/mocha \ | |
--require should \ | |
--reporter $(REPORTER) \ | |
$(TESTS) | |
test-docs: | |
mkdir docs && touch docs/test.html && \ |
var fs = require('fs'); | |
fs.readFile('./resource.json',function(err, data){ | |
if(err) throw err; | |
console.log(JSON.parse(data)); | |
}); | |
console.log('Selanjutnya...'); |
$hasil = mysql_query("SELECT * FROM TabelAnggota"); | |
print_r($hasil); |
{ | |
"jshint_options": | |
{ | |
// remove warning on comma first coding style | |
"laxcomma":true | |
} | |
} |
{ | |
"cmd": ["lessc", "--compress", "$file", "../$file_base_name.css"], | |
"selector": "source.jade", | |
"path": "/usr/local/bin" | |
} | |
# path is where your jade executable. | |
# type in terminal : | |
# $ which jade | |
# and change into "path" value into your location. |