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
/*global module:false*/ | |
module.exports = function(grunt) { | |
// Project configuration. | |
grunt.initConfig({ | |
pkg: '<json:package.json>', | |
meta: { | |
banner: '/*! <%= pkg.title || pkg.name %> - v<%= pkg.version %> - ' + | |
'<%= grunt.template.today("yyyy-mm-dd") %>\n' + | |
'<%= pkg.homepage ? "* " + pkg.homepage + "\n" : "" %>' + |
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
#!/usr/local/bin/node | |
var http = require('http'), | |
url = require('url'), | |
fs = require('fs'), | |
mime = require('mime'); | |
base = __dirname; | |
http.createServer(function (req, res) { | |
var timer = new Date(); |
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
function getCSVData($file) | |
{ | |
$content = array(); | |
$columNames = array(); | |
$row = 0; | |
$handle = fopen($file, "r"); | |
while (($data = fgetcsv($handle, 100000, CSVLIMITER, '"')) !== false) { | |
$row++; |
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
" use hukl's dotfiles | |
" use http://www.vim.org/scripts/script.php?script_id=2754 | |
set nocompatible | |
" Initialize Pathogen | |
call pathogen#infect() | |
" Enable syntax highlighting | |
syntax on |
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
import java.util.Random; | |
public class Dice { | |
//Number of sides of the dice | |
private int sides; | |
//First number of the dice | |
private int firstNumber; | |
NewerOlder