#Ubuntu 13.04 64bit
Download Node-WebKit:
$ wget https://s3.amazonaws.com/node-webkit/v0.7.2/node-webkit-v0.7.2-linux-x64.tar.gz
$ tar xfvz node-webkit-v0.7.2-linux-x64.tar.gz
Pronto ja podemos começar a brincadeira:
#Ubuntu 13.04 64bit
Download Node-WebKit:
$ wget https://s3.amazonaws.com/node-webkit/v0.7.2/node-webkit-v0.7.2-linux-x64.tar.gz
$ tar xfvz node-webkit-v0.7.2-linux-x64.tar.gz
Pronto ja podemos começar a brincadeira:
import java.io.*; | |
import java.util.logging.*; | |
import javax.xml.bind.DatatypeConverter; | |
/** | |
* Hashing with SHA1 | |
* | |
* @param input String to hash | |
* @return String hashed | |
*/ |
<?php | |
$a = 10; | |
if ($a > 5) { | |
$b = 5; | |
} else { | |
$b = 10; | |
} |
#!/usr/bin/env php | |
<?php | |
use Symfony\Component\Console\Application; | |
use Symfony\Component\Console\Input\InputOption; | |
use Symfony\Component\Console\Input\InputArgument; | |
require 'vendor/autoload.php'; | |
$app = new Application; |
################################################################# | |
# = This script transfers bash history to zsh history | |
# = Change bash and zsh history files, if you don't use defaults | |
# | |
# = Usage: ruby bash_to_zsh_history.rb | |
# | |
# = Author: Ankit Goyal | |
################################################################# | |
# change if you don't use default values |
This procedure is tested on Mac OS X 10.10.5 with Developpers tools installed (xCode).
PHP 5.6 installed with Homebrew.
Download the following files from Oracle website (yes, you need to create an account and accept terms):
{ | |
"name": "spakkionu/validate", | |
"description": "Validation Test", | |
"require": { | |
"illuminate/validation": "~4.2.9" | |
}, | |
"license": "MIT", | |
"authors": [ | |
{ | |
"name": "Jonathan Bernardi", |
/* | |
* Javascript makeslug() | |
* by J. Santos <jefrey[at]jefrey[dot]ml> | |
*/ | |
/* | |
Usage: | |
string makeslug( string val [, string replaceBy = "-" ] ) | |
Example: |
from base64 import urlsafe_b64encode, urlsafe_b64decode | |
from Crypto.Cipher import AES | |
from Crypto import Random | |
BS = 16 | |
pad = lambda s: s + (BS - len(s) % BS) * chr(BS - len(s) % BS) | |
unpad = lambda s: s[:-ord(s[len(s) - 1:])] | |
base64pad = lambda s: s + '=' * (4 - len(s) % 4) |
set serveroutput on; | |
declare | |
raw_guid raw(16); | |
guid varchar2(64); | |
begin | |
raw_guid := guid_to_raw ('88c6a267-65d2-48d6-8da2-6f45e2c22726'); | |
guid := raw_to_guid('67A2C688D265D6488DA26F45E2C22726'); | |