Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Djalma Araújo djalmaaraujo

🏠
Working from home
View GitHub Profile
View gist:278934
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 Apr 30, 2012
PHP Youtube uploader + zend
View youtube-uploader-php
<?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 Jun 26, 2012
localStorage or Cookies Check
View keyValueStorage.js
/**
* 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 Oct 1, 2019
Cidades e estados brasileiros JSON & Javascript Object exported / Brazilian States and Cities in JSON or JS/Javascript
View brazil-cities-states-en.json
{
"states": [
{
"uf": "AC",
"name": "Acre",
"cities": [
"Acrelândia",
"Assis Brasil",
"Brasiléia",
"Bujari",
View pagseguro_controller.php
<?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.
View gist:3100138
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 Jul 13, 2012
Konami Code for YUI3
View konami-code
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));
View aui-cep.js
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;
*
*/
View gist:3450022

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
View app.ejs
<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>
You can’t perform that action at this time.