Skip to content

Instantly share code, notes, and snippets.

View cironunes's full-sized avatar
🎯
Focusing

Ciro Nunes cironunes

🎯
Focusing
View GitHub Profile
@cironunes
cironunes / gist:2417765
Created April 19, 2012 01:37
sexy image replacement
.ir {
border: 0;
font: 0/0 a;
text-shadow: none;
color: transparent;
background-color: transparent;
}
@cironunes
cironunes / parallax.html
Created March 1, 2012 16:30 — forked from felquis/parallax.html
Mouse Parallax Effect
<!DOCTYPE HTML>
<html lang="pt-BR">
<head>
<meta charset="UTF-8">
<title>Mouse Parallax Effect</title>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<div id="parallax">
<img class="parallax-item" src="http://bymarina.com.br/wp-content/uploads/2011/01/sol2.jpg" width="150">
@cironunes
cironunes / LICENSE.txt
Created February 12, 2012 15:57 — forked from 140bytes/LICENSE.txt
140byt.es -- Click ↑↑ fork ↑↑ to play!
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@cironunes
cironunes / simple_inheritance.js
Created February 2, 2012 09:22
Simple inheritance example
function inherit( Parent, Child ) {
Child.prototype = new Parent();
}
function Car( name ) {
this.name = name;
}
Car.prototype.drive = function () {
return 'Driving a ' + this.name + ' like a boss';
@cironunes
cironunes / fibonacci.js
Created September 7, 2011 12:21
Fibonacci number script
var Fibonacci = function () {
//private
var nums = [0,1];
return {
pushNumbers: function (q) {
//check if value pass to this method is a number
//if not set it to 0
q = typeof q === 'number' ? q : 0;