Skip to content

Instantly share code, notes, and snippets.

View djalmaaraujo's full-sized avatar
🌊
Working from home

Djalma Araújo de Andrade djalmaaraujo

🌊
Working from home
View GitHub Profile
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
inet 127.0.0.1 netmask 0xff000000
gif0: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
stf0: flags=0<> mtu 1280
en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
inet6 fe80::226:8ff:fe04:1f48%en0 prefixlen 64 scopeid 0x4
inet 192.168.0.128 netmask 0xffffff00 broadcast 192.168.0.255
ether 00:26:08:04:1f:48
@djalmaaraujo
djalmaaraujo / youtube-uploader-php
Created April 30, 2012 21:16
PHP Youtube uploader + zend
<?php
session_start();
$user_developer_key = 'KEY DO USUARIO';
$username = 'LOGIN CONTA GOOGLE';
$password = 'SENHA';
//init zend uploader
require_once 'Zend/Loader.php';
Zend_Loader::loadClass('Zend_Gdata_YouTube');
Zend_Loader::loadClass('Zend_Gdata_AuthSub');
@djalmaaraujo
djalmaaraujo / keyValueStorage.js
Created June 26, 2012 19:48
localStorage or Cookies Check
/**
* keyValueDatabase
*
* Init time Branching ou Ramificação em tempo de inicialização
*
**/
/**
Definição de meu Objeto Literal com seus atributos "get" e "set"
por enquanto sem nenhum ação.
@djalmaaraujo
djalmaaraujo / brazil-cities-states-en.json
Last active January 8, 2024 22:42
Cidades e estados brasileiros JSON & Javascript Object exported / Brazilian States and Cities in JSON or JS/Javascript
{
"states": [
{
"uf": "AC",
"name": "Acre",
"cities": [
"Acrelândia",
"Assis Brasil",
"Brasiléia",
"Bujari",
@djalmaaraujo
djalmaaraujo / pagseguro_controller.php
Created July 9, 2012 18:17
Controller::Pagseguro
<?php
require_once APP . "/lib/PagSeguroLibrary/PagSeguroLibrary.php";
class PagseguroController extends AppController {
public $uses = array();
/**
* Método da Lib do Pagseguro
* para repassar os dados da
* transação.
YUI.add("konami", function (Y) {
Y.Event.define('konami', {
on: function (node, sub, notifier) {
var kkeys = [],
konami = "38,38,40,40,37,39,37,39,66,65";
Y.one(document).on('keydown', function(e) {
kkeys.push( e.keyCode );
if ( kkeys.toString().indexOf( konami ) >= 0 ){
Y.one(document).detach('keydown', arguments.callee);
@djalmaaraujo
djalmaaraujo / konami-code
Created July 13, 2012 01:12
Konami Code for YUI3
YUI.add('konami', function (Y) {
Y.Event.define('konami', {
_konamiKeys: [38,38,40,40,37,39,37,39,66,65],
on: function (node, sub, notifier) {
var instance = this;
sub._firstIndexLenght = 0;
sub._index = 0;
sub._handle = Y.on('keydown', Y.rbind(instance._handleKeyDown, instance, sub, notifier));
AUI.add('aui-cep', function(A) {
/**
* The CEP informations to Brazil Addresses
*
* @module aui-cep
*
* TODO:
* - Escolher um webservice bem utilizado para usar como padrão;
*
*/
@djalmaaraujo
djalmaaraujo / gist:3450022
Created August 24, 2012 12:28
Testing gist.io

ZURB Foundation Features

Pros

  • Sass
  • The GRID system is very good (12 columns)

Cons

  • IE7 support was deprecated on 2.2.1 verson
  • Doesn't support IE8 with All features
<div class="container">
<div class="row">
<div style="background: #000; overflow:hidden; border-right:4px solid red; display: inline-block; position: relative; height: 100%; width: 15%;">
<p>testando</p>
</div>
<div style="background: #000; overflow:hidden; border-right:4px solid red; position: relative; height: 100%; width: 15%; display: inline-block;">
<p>testando</p>
</div>
<br clear="all" />
</div>