Skip to content

Instantly share code, notes, and snippets.

View charlenopires's full-sized avatar

Charleno Pires charlenopires

View GitHub Profile
@charlenopires
charlenopires / Velocity.js-SVG-animation.markdown
Created November 29, 2014 05:16
Velocity.js SVG animation

Velocity.js SVG animation

Small animation exploration of my logo for my website.

A Pen by Gaston on CodePen.

License.

@charlenopires
charlenopires / Applying-CSS-effects-onto-individual-letters.markdown
Created November 28, 2014 02:47
Applying CSS effects onto individual letters

Applying CSS effects onto individual letters

This is how to apply CSS styling onto individual letters inside a HTML element using jQuery. Made by Luke for a friend, you're welcome.

A Pen by Luke Brown on CodePen.

License.

/**
* The sample usage of ECMA 5 Mozilla Features Implemented in V8
* https://github.com/joyent/node/wiki/ECMA-5-Mozilla-Features-Implemented-in-V8
* You can use thease new feature of ECMA5 on Node.js as you like.
* because there is no IE :)
* Order is deferent form original wiki.
* Sources are Checked on Node.js v0.5.0(unstable), v0.4.9(stable)
*
* you can execute this file.
* $ node ecma5_on_v8.js
@charlenopires
charlenopires / index.android.js
Created October 18, 2015 20:51 — forked from axemclion/index.android.js
Cordova Plugins in React native
'use strict';
var React = require('react-native');
var {
AppRegistry,
StyleSheet,
Text,
View,
NativeModules,
TouchableHighlight,
@charlenopires
charlenopires / lineColors.js
Last active October 18, 2015 05:34
Fixing an Error
/*
Adicione o lodash
<script src="lodash.js"></script>
*/
function LineColors(dados){
var o = {};
_.forEach(dados, function(d){
var n = {};
@charlenopires
charlenopires / courseData.js
Created October 12, 2015 17:36 — forked from coryhouse/courseData.js
Course data for "Building Applications with React and Flux" on Pluralsight
module.exports = {
courses: [
{
id: "clean-code",
title: "Clean Code: Writing Code for Humans",
watchHref: "http://www.pluralsight.com/courses/writing-clean-code-humans",
author: {
id: "cory-house",
name: "Cory House"
},
@charlenopires
charlenopires / Material-Design---Sidebar-(Profile-menu).markdown
Created November 29, 2014 02:28
Material Design - Sidebar (Profile menu)
@charlenopires
charlenopires / gist:2952294
Created June 19, 2012 04:33
Mongoid.yml for MongoHQ+Heroku
Command: heroku config e verifique o endereço do MONGOHQ_URL gerado pelo AddOn
Crie um Mongoid.yml no diretório /config seguindo o seguinte contexto:
development:
host: localhost
database: yourapp_development
test:
host: localhost
describe "GET current" do
before do
@request.cookies['hidden_notices'] = "1,#{notices(:permanent).id}"
get :current, :format => 'js'
end
it { should respond_with(:success) }
it { should set_cookie(:hidden_notices).to("#{notices(:permanent).id}") }
it { should render_template('notices/current') }
end
%% @author Leandro Silva <leandrodoze@gmail.com>
%% @copyright 2011 Leandro Silva.
%% @doc Functional test module for an imaginary websocket application.
-module(imaginary_websocket_app_test).
-author('Leandro Silva <leandrodoze@gmail.com>').
-include_lib("eunit/include/eunit.hrl").