Skip to content

Instantly share code, notes, and snippets.

View AndersonFirmino's full-sized avatar
🐍
📜 🎼 🎮 🐧 🦆

Anderson Araujo AndersonFirmino

🐍
📜 🎼 🎮 🐧 🦆
View GitHub Profile
/* Non-responsive overrides for Bootstrap 3
*
* Utilize the following CSS to disable the responsive-ness of the container,
* grid system, and navbar.
*/
/* Reset the container */
.container {
max-width: none !important;
width: 970px;
@AndersonFirmino
AndersonFirmino / index.html
Last active December 15, 2015 13:08 — forked from anonymous/index.html
JS BinHow to style a select// source https://jsbin.com/neyola/edit?html,css,output
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="How to style a select">
<meta charset="utf-8">
<title>Style a select</title>
</head>
<body>
<select>
<option>CoffeeScript</option>
login url
<?php echo Mage::getUrl('customer/account/login'); ?>
logout url
<?php echo Mage::getUrl('customer/account/logout'); ?>
My Account url
<?php echo Mage::getUrl('customer/account'); ?>
Register url
@AndersonFirmino
AndersonFirmino / mussum-ipsum.sublime-snippet
Created January 11, 2016 16:52 — forked from zenorocha/mussum-ipsum.sublime-snippet
Mussum Ipsum - Snippet para Sublime Text
<!-- Fonte: mussumipsum.com -->
<snippet>
<content><![CDATA[
Mussum ipsum cacilds, vidis litro abertis. Consetis adipiscings elitis. Pra lá , depois divoltis porris, paradis. Paisis, filhis, espiritis santis. Mé faiz elementum girarzis, nisi eros vermeio, in elementis mé pra quem é amistosis quis leo. Manduma pindureta quium dia nois paga. Sapien in monti palavris qui num significa nadis i pareci latim. Interessantiss quisso pudia ce receita de bolis, mais bolis eu num gostis.
Suco de cevadiss, é um leite divinis, qui tem lupuliz, matis, aguis e fermentis. Interagi no mé, cursus quis, vehicula ac nisi. Aenean vel dui dui. Nullam leo erat, aliquet quis tempus a, posuere ut mi. Ut scelerisque neque et turpis posuere pulvinar pellentesque nibh ullamcorper. Pharetra in mattis molestie, volutpat elementum justo. Aenean ut ante turpis. Pellentesque laoreet mé vel lectus scelerisque interdum cursus velit auctor. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam ac mauris lectus, non scelerisque augu
//=============================================================================
// No Limit Text Scroll Speed
// Version 1.01 (2015.10.30)
//=============================================================================
/*:
* @plugindesc Removes limits on scrolling text speed by overriding editor value
* @author NoInkling
*
* @help
@AndersonFirmino
AndersonFirmino / exemplo-subprocess.py
Created January 18, 2016 22:49 — forked from diegorocha/exemplo-subprocess.py
Exemplo de interação com outros processos usando o modulo subprocess
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import subprocess
#Obtem o RETURN CODE de um programa, no caso o pwd
value = subprocess.call('pwd')
print value
#Obtem a saída normal (stdout) de um programa, no caso o pwd
@AndersonFirmino
AndersonFirmino / install_pygame.sh
Created February 17, 2016 23:24 — forked from brousch/install_pygame.sh
A script to install Pygame 1.9.1 into a Python2.7 virtualenv on Ubuntu 12.04. Make sure you have activated the virtualenv before running this script or it will install Pygame system-wide.
#!/bin/sh
BASE_PATH=`pwd`
sudo apt-get build-dep python-pygame
sudo apt-get install python-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-ttf2.0-dev libsdl1.2-dev libsmpeg-dev python-numpy subversion libportmidi-dev ffmpeg libswscale-dev libavformat-dev libavcodec-dev libv4l-dev
cd /usr/include/linux
sudo ln -s ../libv4l1-videodev.h videodev.h
cd $BASE_PATH
wget http://www.pygame.org/ftp/pygame-1.9.1release.tar.gz
tar -xzf pygame-1.9.1release.tar.gz
cd pygame-1.9.1release
@AndersonFirmino
AndersonFirmino / 00.howto_install_phantomjs.md
Created March 3, 2016 21:29 — forked from julionc/00.howto_install_phantomjs.md
How to install PhantomJS on Debian/Ubuntu

How to install PhantomJS on Ubuntu

Version: 1.9.8

Platform: x86_64

First, install or update to the latest system software.

sudo apt-get update
sudo apt-get install build-essential chrpath libssl-dev libxft-dev
import sys
def count_words(text_file):
file = open(textfile,'r+')
word_list = {}
for word in file.read().split():
if word not in word_list:
word_list[word] = 1
else:
@AndersonFirmino
AndersonFirmino / install-pygtk.sh
Created April 23, 2016 18:41 — forked from mehcode/install-pygtk.sh
Install pygtk inside of a virtualenv
# Ensure we're in a virtualenv.
if [ "$VIRTUAL_ENV" == "" ]
then
echo "ERROR: not in a virtual environment."
exit -1
fi
# Setup variables.
CACHE="/tmp/install-pygtk-$$"