Skip to content

Instantly share code, notes, and snippets.

View jcserracampos's full-sized avatar
💭
Everybody is just another transaction in the blockchain

Júlio Campos jcserracampos

💭
Everybody is just another transaction in the blockchain
View GitHub Profile
@jcserracampos
jcserracampos / .env
Last active August 16, 2019 23:58
Bot de twitter em nodejs
CONSUMER_KEY=
CONSUMER_SECRET=
ACCESS_TOKEN=
ACCESS_TOKEN_SECRET=
@jcserracampos
jcserracampos / webgl.html
Last active April 2, 2018 22:54
Contexto WebGL
<!DOCTYPE html>
<html>
<header>
<meta charset="UTF-8" />
<title>Criação de um contexto WebGL</title>
</header>
<body>
<h2 id="info-id">WebGL não suportado</h2>
<canvas id="canvas-id" style="border:1px solid black" width="500" weigth="500">
04b55b7575e03320ef665992fa70b85a81e23840159f6e31a79bcda98c25aeedb73cc2a66b92b175407df1948c3b6c2bfa31fbe980b33b3ff8512eaa01d267d81e
ActiveSupport::Inflector.inflections do |inflect|
inflect.clear
inflect.plural(/$/, 's')
inflect.plural(/(s)$/i, '\1')
inflect.plural(/^(paí)s$/i, '\1ses')
inflect.plural(/(z|r)$/i, '\1es')
inflect.plural(/al$/i, 'ais')
inflect.plural(/el$/i, 'eis')
inflect.plural(/ol$/i, 'ois')
@jcserracampos
jcserracampos / inflections.rb
Created January 6, 2016 10:13 — forked from mateusg/inflections.rb
pt-BR inflections file for Ruby on Rails applications
# encoding: utf-8
# Be sure to restart your server when you modify this file.
# Add new inflection rules using the following format
# (all these examples are active by default):
# ActiveSupport::Inflector.inflections do |inflect|
# inflect.plural /^(ox)$/i, '\1en'
# inflect.singular /^(ox)en/i, '\1'
# inflect.irregular 'person', 'people'
# inflect.uncountable %w( fish sheep )
@jcserracampos
jcserracampos / app.js
Last active August 29, 2015 14:09 — forked from mirontoli/app.js
var autocompleteApp = angular.module("autocompleteApp");
var autocompleteController = function($scope) {
//http://jqueryui.com/autocomplete/
var availableTags = [
"ActionScript",
"AppleScript",
"Asp",
"BASIC",
"C",
"C++",