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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant::Config.run do |config| | |
config.vm.box = "precise32" | |
config.vm.network :hostonly, "33.33.33.10" | |
config.vm.network :bridged | |
config.vm.forward_port 80, 8080 | |
config.vm.share_folder "web-app", "/web-app", "web-app" |
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
<project name="datatypetest"> | |
<path id="classpath"> | |
<fileset dir="lib"> | |
<include name="**/*.jar" /> | |
</fileset> | |
<pathelement location="cls" /> | |
</path> | |
<target name="compile"> |
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
'##::::::::::'###:::::::'###::::'########::'######::'########:'########:::::'######::'########::::'###::::'########:::'##:::::::::::::::::::: ##:::::::::'## ##:::::'## ##:::... ##..::'##... ##:... ##..:: ##.....:::::'##... ##:... ##..::::'## ##::: ##.... ##:'####::::::::::::::::::: ##::::::::'##:. ##:::'##:. ##::::: ##:::: ##:::..::::: ##:::: ##:::::::::: ##:::..::::: ##:::::'##:. ##:: ##:::: ##:. ##:::::::::::::::::::: ##:::::::'##:::. ##:'##:::. ##:::: ##::::. ######::::: ##:::: ######::::::. ######::::: ##::::'##:::. ##: ########:::..::::::::::::::::::::: ##::::::: #########: #########:::: ##:::::..... ##:::: ##:::: ##...::::::::..... ##:::: ##:::: #########: ##.....::::'##:::::::::::::::::::: ##::::::: ##.... ##: ##.... ##:::: ##::::'##::: ##:::: ##:::: ##::::::::::'##::: ##:::: ##:::: ##.... ##: ##::::::::'####::::::::::::::::::: ########: ##:::: ##: ##:::: ##:::: ##::::. ######::::: ##:::: ########::::. ######::::: ##:::: ##:::: ##: ##::::::::. ##:::::::::::::::::::: ........::..:::::..::..:::::..:::::. |
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 [ b ] = base2base( a, base_from, base_to ) | |
M = base2dec(a, base_from); | |
n = floor(log10(M) / log10(base_to)); | |
b = zeros(1, n+1); | |
for i = 0:n; | |
b(n + 1 - i) = mod(floor(M / (base_to^i)), base_to); | |
end | |
end |
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 nl.falcon108; | |
import java.util.ArrayList; | |
import java.util.List; | |
public class Collections { | |
/** | |
* Creates 2-dimensional ArrayList from a List with all the combinations of length k | |
* @param collection |
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 [ comb ] = combinations( set, length ) | |
comb = []; | |
for i=1:(size(set,2) - length + 1) | |
if(length > 1) | |
chcombs = combinations(set(i+1:end), length - 1); | |
for i_c=1:size(chcombs, 1) | |
comb(end + 1,:) = [set(i) chcombs(i_c,:)]; | |
end | |
else |
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
<?php | |
namespace Ingenii\HomeBudgetBundle\Controller; | |
use Symfony\Bundle\FrameworkBundle\Controller\Controller; | |
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; | |
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template; | |
class DashboardController extends Controller | |
{ |