This file contains hidden or 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
package org.joeltong.test; | |
import java.util.Arrays; | |
public class App { | |
public static void main(String[] args) { | |
int[] arr = new int[]{5,3,89,4,4,45,22,44,5,3}; | |
insertionSort(arr); |
This file contains hidden or 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
package org.joeltong.test; | |
import java.util.Arrays; | |
public class App { | |
public static void main(String[] args) { | |
int[] arr = new int[]{5,3,89,4,4,45,22,44,5,3}; | |
insertionSort(arr); |
This file contains hidden or 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
package org.joeltong.test; | |
import java.util.Arrays; | |
public class MergeSort { | |
static void mergeSort(int[] arr) { | |
mergeSort(arr, 0, arr.length - 1); | |
} |
This file contains hidden or 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
package org.joeltong.testJLibSvm; | |
import edu.berkeley.compbio.jlibsvm.ImmutableSvmParameter; | |
import edu.berkeley.compbio.jlibsvm.ImmutableSvmParameterGrid; | |
import edu.berkeley.compbio.jlibsvm.binary.BinaryModel; | |
import edu.berkeley.compbio.jlibsvm.binary.C_SVC; | |
import edu.berkeley.compbio.jlibsvm.binary.MutableBinaryClassificationProblemImpl; | |
import edu.berkeley.compbio.jlibsvm.kernel.LinearKernel; | |
import edu.berkeley.compbio.jlibsvm.util.SparseVector; |
This file contains hidden or 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
# Conkyrc by Hund @ ebupof.deviantart.com | |
# Sry for the chaos below, but atleast it works! ;) | |
background no | |
#19.41640788use_xft yes | |
xftfont Terminus:size=8 | |
xftalpha 0.2 | |
update_interval 3.0 | |
total_run_times 0 | |
own_window yes |
This file contains hidden or 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
/* MIXINs */ | |
@mixin transition( $val : ease 0.5s ) { | |
-webkit-transition: $val; | |
-moz-transition:$val; | |
-o-transition:$val; | |
-ms-transition:$val; | |
transition:$val; | |
} | |
@mixin text-shadow( $top: 3px, $left: 3px, $blur: 3px , $colour: #333 ) { |
This file contains hidden or 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> | |
<title>Test submit form</title> | |
<!--<script language="JavaScript" type="text/javascript" src="js/voucher.js"></script>--> | |
<script src="https://code.jquery.com/jquery-1.11.2.min.js"></script> | |
<meta charset="utf-8" /> | |
</head> | |
<body> | |
Users online: <span id="usersOnline">0</span> |
This file contains hidden or 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
#!/bin/bash | |
HOST=google.com | |
while : | |
do | |
if ping -c 1 $HOST &> /dev/null | |
then | |
echo 1 | |
else | |
echo 0 | |
# Restart connection if unavailable |
This file contains hidden or 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
####################### | |
# IMPORTANT. WORKS ON: | |
# Express >= v3.x | |
# Socket.io >= v1.0 | |
###################### | |
io = require('socket.io-client') | |
socket = io('http://localhost:3000') |
This file contains hidden or 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
#!/bin/bash | |
## Check for versions compiled with ARM at http://nodejs.org/dist/ | |
## Inspired by http://oskarhane.com/raspberry-pi-install-node-js-and-npm/ | |
## Fill in the Node Version here: | |
########################################################################## | |
NODE_VERSION="v0.10.21" |
NewerOlder