Skip to content

Instantly share code, notes, and snippets.

View sapardi's full-sized avatar

sapardi sapardi

  • Cybersecurity Enthusias
  • Indonesia
View GitHub Profile
@sapardi
sapardi / PlayOnLinuxMint
Created November 23, 2013 04:39
Solution for installing environment path of play framework on LinuxMint
Finally i found the way how to install and configure Play Framework on my Linux Mint. Meanwhile Sox and Play Framework have conflict same name 'play', here how to remove Sox :
sudo aptitude remove '?name(sox)'
And now we can just launch our Play Framework normally.
play help
@sapardi
sapardi / build.sbt
Created May 29, 2012 12:04 — forked from rweald/build.sbt
DES and AES encryption in Scala
name := "DES and AES encryption in Scala"
version := "1.0"
scalaVersion := "2.9.1"
libraryDependencies += "commons-codec" % "commons-codec" % "1.6"
@sapardi
sapardi / chat.js
Created February 28, 2012 04:32
Simple chat program with node.js
var net = require('net');
var carrier = require('carrier');
var connections = [];
net.createServer(function(conn) {
connections.push(conn);
conn.on('close', function() {
@sapardi
sapardi / hello_world.js
Created February 28, 2012 03:38
Hello World Node.js
var http = require('http');
var server = http.createServer(function(request, response) {
console.log('new request');
response.writeHead(200, {
'Content-Type': 'text/plain'
});
response.end('Hello World');
});
@sapardi
sapardi / file.js
Created February 28, 2012 03:35
Read file in node.js
var http = require('http'),
fs = require('fs'),
step = require('step');
var file_path = __dirname + '/SCAN0004.JPG';
var file_size, file_content;
step(
function get_file_size() {
@sapardi
sapardi / LaporanTagihan.txt
Created September 30, 2011 02:09 — forked from endymuhardin/LaporanTagihan.txt
Contoh Direct Print dengan Java
LAPORAN DAFTAR PELUNASAN KOLETKOR
AGEN PT. ARTIVISI INTERMEDIA
=====================================================================================================================
KODE KOLEKTOR : 0001
NAMA KOLEKTOR : JOJO
+------+--------------+---------------------------+---------+-------------+-------------+-------------+-------------+