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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <unistd.h> | |
#include <errno.h> | |
#include <string.h> | |
#include <sys/types.h> | |
#include <sys/socket.h> | |
#include <netinet/in.h> | |
#include <netdb.h> | |
#include <arpa/inet.h> |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <unistd.h> | |
#include <errno.h> | |
#include <string.h> | |
#include <sys/types.h> | |
#include <sys/socket.h> | |
#include <netinet/in.h> | |
#include <netdb.h> | |
#include <arpa/inet.h> |
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
var container = $('._mo9iw._123ym'); | |
var button = $('._l086v._ifrvy'); | |
var scrollAndClick = () => { | |
container.scrollTop = 0; | |
button.click(); | |
}; | |
var startScrollAndClick = (finishCallback) => { | |
scrollAndClick(); |
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
var normalize = function(h) { return h.length == 1 ? '0' + h : h; }; | |
var convert = function(r, g, b) { return '#' + normalize(r.toString(16)) + normalize(g.toString(16)) + normalize(b.toString(16)); }; |
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.util.HashMap; | |
import java.util.HashSet; | |
import java.util.Set; | |
/** | |
* A simple undirected and unweighted graph implementation. | |
* | |
* @param <T> The type that would be used as vertex. | |
*/ | |
public class Graph<T> { |
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
(function( $ ) { | |
$.fn.feed = function(args) { | |
var URL = "http://apps.morenite.com/tweet-feeder/index.php?user=" + args.user + "&action=" + args.action; | |
$.getJSON(URL, function(data) { | |
}); | |
} |
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
/* | |
Author: Imam Hidayat (mokhamad.imam[at]students.paramadina.ac.id) | |
Universitas Paramadina | |
Source: https://gist.github.com/imamhidayat92/7728574 | |
This helper class can be used to simplify report generation procedure using Jasper Report 5.5.0. | |
*/ | |
import java.sql.*; |
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
package helper; | |
/* | |
Author: Imam Hidayat (mokhamad.imam[at]students.paramadina.ac.id) | |
Universitas Paramadina | |
Source: https://gist.github.com/imamhidayat92/5418619 | |
This helper class can be used to simplify JTable usage in Java. | |
*/ |
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
/* | |
Author: Imam Hidayat (mokhamad.imam[at]students.paramadina.ac.id) | |
Universitas Paramadina | |
Source: https://gist.github.com/imamhidayat92/5418582 | |
This helper class can be used to simplify query execution using MySQL Database in Java. | |
*/ | |
import java.sql.*; |