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.Random; | |
public class Dice { | |
//Number of sides of the dice | |
private int sides; | |
//First number of the dice | |
private int firstNumber; | |
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
" 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 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 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 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 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
<scheme name="Smyck" parent_scheme="Default" version="1"> | |
<option name="LINE_SPACING" value="1.0" /> | |
<option name="EDITOR_FONT_SIZE" value="12" /> | |
<option name="EDITOR_FONT_NAME" value="Menlo" /> | |
<colors> | |
<option name="CONSOLE_BACKGROUND_KEY" value="1B1B1B" /> | |
<option name="INDENT_GUIDE" value="444a50" /> | |
<option name="SELECTION_BACKGROUND" value="1c5665" /> | |
<option name="CARET_ROW_COLOR" value="323232" /> | |
<option name="WHITESPACES" value="444a50" /> |
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
#!/usr/local/bin/node | |
var fs = require('fs'); | |
var sys = require('sys'); | |
var exec = require('child_process').exec; | |
console.log("Start converting"); | |
var command = "convert -flatten "; |
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
#!/bin/sh | |
# install script for PHP framework Phalcon | |
# for more info see http://docs.phalconphp.com/en/latest/reference/install.html#linux-solaris-mac | |
echo "-------------------" | |
echo "Install Phalcon PHP" | |
echo "-------------------" | |
# installation prerequirements |
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
#!/bin/sh | |
echo "==================================" | |
echo "Welcome to TYPO3 project-bootstrapping." | |
echo "==================================" | |
mkdir cms | |
echo "Clone TYPO3 repositry" | |
git clone https://github.com/TYPO3/TYPO3.CMS.git typo3_src |
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
.DS_Store | |
## TYPO3 v4 | |
# Ignore serveral upload and file directories. | |
/fileadmin/user_upload/ | |
/fileadmin/_temp_/ | |
/uploads/ | |
# Ignore cache | |
/typo3conf/temp_CACHED* | |
/typo3conf/temp_fieldInfo.php | |
# Ignore local config which overrides typo3 config. |
OlderNewer