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
all: view | |
single: quiet | |
open "/tmp/`basename '$(CURDIR)'`"/*.pdf | |
quiet: | |
mkdir -p "/tmp/`basename '$(CURDIR)'`" | |
pdflatex -output-directory="/tmp/`basename '$(CURDIR)'`" main.tex | |
view: quiet |
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 com.helloiampau.miscs; | |
import java.util.HashMap; | |
class ClassContainer extends HashMap<String, Object> { | |
private final String CLASS = "class"; | |
private final String SUPERCLASS = "superclass"; | |
private final String INTERFACES = "interfaces"; | |
public void putObjectClass(Class c) { |
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/env/python | |
in_file = open("intestatari.txt", "r"); | |
out_file = open("fase1.txt", "w"); | |
c = 1; | |
while True: | |
line = in_file.readline(); | |
if line == "": |
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/bash | |
# Basic script to dump subtitle track from mkv files into .idx/.sub files for | |
# ocr to srt format. | |
# There are only basic checks on whether the file is Matroska and has subtitles. | |
# This is meant for vobsub subtitles and hasn't been tested on muxed srt | |
# subtitles. Any subtitle formats other than vobsubs should just be dumped with | |
# the .sub extension. | |
# | |
# WARNING: Use at your own risk |
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
114 | |
1) La modellazione dei processi gestionali avviene sui tre livelli architetturali nell'ordine: | |
-aziendale, di processo, di attivita' | |
-funzionale, di processo, di attivita' | |
-aziendale, di attivita', di elementi funzionali | |
2) Gli indici sono i dati: | |
-aggregati | |
-le chiavi di accesso | |
-anagrafici | |
3) Un Extends indica che: |
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
require 'formula' | |
class Depot < Formula | |
homepage 'https://sites.google.com/a/chromium.org/dev/developers/how-tos/depottools' | |
url 'https://chromium.googlesource.com/chromium/tools/depot_tools.git' | |
sha1 '' | |
def install | |
prefix.install Dir['*'] | |
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
#!/bin/bash | |
if [ `uname` == "Darwin" ]; then | |
VIM=/Applications/MacVim.app/Contents/MacOS/Vim; | |
else | |
VIM=vim; | |
fi | |
echo "Going to tmp folder..." | |
cd /tmp |
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 : | |
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
VAGRANTFILE_API_VERSION = "2" | |
$INSTALL_REDIS = <<SCRIPT | |
sudo apt-get update | |
sudo apt-get upgrade | |
sudo apt-get install -y redis-server |
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 : | |
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
VAGRANTFILE_API_VERSION = "2" | |
$INSTALL_MONGO = <<SCRIPT | |
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10 | |
echo 'deb http://downloads-distro.mongodb.org/repo/debian-sysvinit dist 10gen' | sudo tee /etc/apt/sources.list.d/mongodb.list | |
sudo apt-get update |
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/bash | |
function scimark { | |
echo "downloading scimark" | |
mkdir -p ./benchmarks | |
curl http://math.nist.gov/scimark2/scimark2lib.zip > ./benchmarks/sci.zip | |
cd ./benchmarks | |
unzip sci.zip | |
echo "ready to run: 3" | |
sleep 1 |
OlderNewer