Skip to content

Instantly share code, notes, and snippets.

View AndersonFirmino's full-sized avatar
๐Ÿ
๐Ÿ“œ ๐ŸŽผ ๐ŸŽฎ ๐Ÿง ๐Ÿฆ†

Anderson Araujo AndersonFirmino

๐Ÿ
๐Ÿ“œ ๐ŸŽผ ๐ŸŽฎ ๐Ÿง ๐Ÿฆ†
View GitHub Profile
@AndersonFirmino
AndersonFirmino / spreadsheet.py
Created December 21, 2017 21:55 — forked from alchemyst/spreadsheet.py
Spreadsheet in 100 lines of Python
#!/usr/bin/env python
import tkinter as tk
import math
import re
from collections import ChainMap
Nrows = 5
Ncols = 5
@AndersonFirmino
AndersonFirmino / comoSerChatoNowhatsapp.js
Created October 18, 2017 16:17 — forked from callmeloureiro/comoSerChatoNoWhatsapp.js
Como fazer alguรฉm te responder no whatsapp
var counter = 0;
var i = setInterval(function() {
window.InputEvent = window.Event || window.InputEvent;
var d = new Date();
var event = new InputEvent('input', {
bubbles: true
});
var textbox = document.querySelector('#main > footer > div.block-compose > div.input-container > div.pluggable-input.pluggable-input-compose > div.pluggable-input-body.copyable-text.selectable-text');
var textToSend = "Me responde!";
@AndersonFirmino
AndersonFirmino / underscore_dict.py
Created September 8, 2017 22:28 — forked from andrewwatts/underscore_dict.py
a dict that forces keys, which are likely camelCase, into under score keys.
class underscore_dict(dict):
"""
a dict like object that forces key to be pythonic and follow the underscore
convention.
eg::
>>> d = underscore_dict(dict(myKey='my_value'))
>>> print d
'my_key': 'my_value'}
@AndersonFirmino
AndersonFirmino / camel_case_to_snake_case.py
Created September 8, 2017 22:27 — forked from jaytaylor/camel_case_to_snake_case.py
Convert camel-case to snake-case in python.
#!/usr/bin/env python
"""
Convert camel-case to snake-case in python.
e.g.: CamelCase -> snake_case
Relevant StackOverflow question: http://stackoverflow.com/a/1176023/293064
"""
@AndersonFirmino
AndersonFirmino / mersenne-twister.js
Created August 30, 2017 16:25 — forked from banksean/mersenne-twister.js
a Mersenne Twister implementation in javascript. Makes up for Math.random() not letting you specify a seed value.
/*
I've wrapped Makoto Matsumoto and Takuji Nishimura's code in a namespace
so it's better encapsulated. Now you can have multiple random number generators
and they won't stomp all over eachother's state.
If you want to use this as a substitute for Math.random(), use the random()
method like so:
var m = new MersenneTwister();
@AndersonFirmino
AndersonFirmino / operator_with_ligatures.md
Created July 27, 2017 18:30 — forked from renatorib/operator_with_ligatures.md
Using Operator Mono with Fira Code ligatures in Atom.

Using Operator Mono with Fira Code ligatures in Atom.

  1. Open your Atom's Stylesheet
    image

  2. Put this css

atom-text-editor {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
#!/usr/bin/env python
# USAGE: ./convert_report_to_cucumber_format.py --behave-report bdd/report.json [--json-schema cucumber-report-schema.json]
import argparse, json, sys
def main(argv):
args = parse_args(argv)
with open(args.behave_report, 'r') as json_file:
@AndersonFirmino
AndersonFirmino / .gitignore
Created April 22, 2017 07:09 — forked from smebberson/.gitignore
Express simple authentication example
node_modules
*.swp
# taken from http://www.piware.de/2011/01/creating-an-https-server-in-python/
# generate server.xml with the following command:
# openssl req -new -x509 -keyout server.pem -out server.pem -days 365 -nodes
# run as follows:
# python simple-https-server.py
# then in your browser, visit:
# https://localhost:4443
import BaseHTTPServer, SimpleHTTPServer
import ssl
@AndersonFirmino
AndersonFirmino / gist:3b60be5b279582870995e695b8f0262c
Created March 11, 2017 21:28 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: ๐Ÿ˜„ :smile: ๐Ÿ˜† :laughing:
๐Ÿ˜Š :blush: ๐Ÿ˜ƒ :smiley: โ˜บ๏ธ :relaxed:
๐Ÿ˜ :smirk: ๐Ÿ˜ :heart_eyes: ๐Ÿ˜˜ :kissing_heart:
๐Ÿ˜š :kissing_closed_eyes: ๐Ÿ˜ณ :flushed: ๐Ÿ˜Œ :relieved:
๐Ÿ˜† :satisfied: ๐Ÿ˜ :grin: ๐Ÿ˜‰ :wink:
๐Ÿ˜œ :stuck_out_tongue_winking_eye: ๐Ÿ˜ :stuck_out_tongue_closed_eyes: ๐Ÿ˜€ :grinning:
๐Ÿ˜— :kissing: ๐Ÿ˜™ :kissing_smiling_eyes: ๐Ÿ˜› :stuck_out_tongue: