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
/* | |
* JQuery Videos Loader | |
* @xxleite ( 23/12/2011 17:45:00 -3 UTC ) | |
* | |
* parameters: | |
* user = youtube username | |
* maxVideos = total of videos to load | |
* onSuccess = function callback to receive videos array | |
* | |
*/ |
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 foo() { | |
var json = '{"response":"","content":{"users":[{"name":"victor","age":"24"},{"name":"isabella","age":"22"},{"name":"maria","age":"12"}' + | |
',{"name":"raquel","age":"13"},{"name":"paulo","age":"22"},{"name":"isabella","age":"25"}]}}'; | |
var data; | |
var res = json.match( /{"([^"]+)":"([^"]+)","([^"]+)":"([^"]+)"}/g ); | |
for( i=0;i<res.length;i++ ) { |
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
sudo ./configure --enable-bcmath --enable-calendar --enable-exif --enable-ftp --enable-gd-native-ttf --enable-mbstring --enable-shmop --enable-sockets --enable-sysvsem --enable-sysvshm --enable-tokenizer --enable-wddx --with-openssl --with-zlib-dir --with-zlib --with-bz2 --with-jpeg-dir --with-curl --with-gd --with-png-dir --with-xpm-dir --with-freetype-dir --with-gettext --with-gmp=/usr/include --with-mcrypt=/usr/local/libmcrypt --with-mhash --with-mysql --with-pspell --with-regex=php --with-xmlrpc --with-iconv --with-tsrm-st --with-tsrm-pthreads --with-kerberos --enable-soap --with-pdo-mysql --with-mysqli --with-libxml --with-xsl --with-config-file-scan-dir=/usr/lib/php5 --with-config-file-path=/usr/lib/php5/php.ini |
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
--[[ | |
---------------------------------------------------------------------------- | |
"THE BEER-WARE LICENSE" (Revision 42): | |
<[email protected]> wrote this file. As long as you retain this notice you | |
can do whatever you want with this stuff. If we meet some day, and you think | |
this stuff is worth it, you can buy me a beer in return | |
---------------------------------------------------------------------------- | |
--]] | |
-- all necessery libs |
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
sudo apt-get install openssl build-essential xorg libssl-dev libxrender-dev libqt4-dev qt4-dev-tools | |
wget http://wkhtmltopdf.googlecode.com/files/wkhtmltopdf-0.11.0_rc1.tar.bz2 | |
tar xjf wkhtmltopdf-0.11.0_rc1.tar.bz2 | |
cd wkhtmltopdf-0.11.0_rc1 | |
make | |
sudo make install |
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
server { | |
location /index { | |
rewrite ^/index / permanent; | |
} | |
} |
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
<?php | |
class usuario{ | |
//variaveis privadas | |
private $_codCliente; | |
private $_nome; | |
private $_email; | |
private $_endereco; | |
private $_numero; |
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
#! /bin/bash | |
JETTY_BIN_URL=http://eclipse.c3sl.ufpr.br/jetty/8.1.9.v20130131/dist/jetty-distribution-8.1.9.v20130131.tar.gz | |
JETTY_DIR=/etc/jetty | |
JETTY_USER=jetty | |
JETTY_GROUP=www-data | |
JETTY_PID=/var/run/jetty.pid | |
JETTY_PORT=8080 | |
JETTY_LOGS=/var/log/jetty |
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
diff -ENwbur --exclude=.git --exclude=.svn thx/ ../dev/arkleite/vendor/plugins/thinking-sphinx/ > thinkingx |
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
#include <stdlib.h> | |
#include <stdio.h> | |
#include <string.h> | |
#if !defined mempcpy | |
void *mempcpy(void *dst, const void *src, size_t len) { | |
return (char *) memcpy(dst, src, len) + len; | |
} | |
#endif |
OlderNewer