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 / 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;
@addyosmani
addyosmani / index.html
Created August 16, 2012 12:44
This was inspired by the Dribbble shot to the left of the canvas by Ramiro Galan, which can be found here: http://dribbble.com/shots/674715-Sparkle-Light-Trail. Some browsers still won't fully clear a canvas all the way with the destination-out globalCom
<!-- source image and inspiration from Ramiro Galan on Dribbble: http://dribbble.com/shots/674715-Sparkle-Light-Trail -->
<img src="http://dribbble.s3.amazonaws.com/users/36991/screenshots/674715/game.png" />
@sjwilliams
sjwilliams / gist:3903157
Created October 17, 2012 01:03 — forked from lucasfais/gist:1207002
Sublime Text 2 Cheat Sheet. Shortcuts, including Vintage mode.

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘KB toggle side bar
⌘⇧P command prompt
⌃ ` python console
⌘⇧N new window (useful for new project)
@pellegrino
pellegrino / gist:4066065
Last active October 31, 2023 01:56
Médicos e dentistas brasileiros em berlin
Clínica geral:
Marcus Thuma. Kant Praxis
Centro para medicina interna
Cardiologia, Gastroenterologia, Clínica Geral
Kurfürstendamm 42
10719 Berlim
Tel: (030) 88 71 44 60
Fax: (030) 88 71 44 619
E-mail: info@kantpraxis.de
@davidsonfellipe
davidsonfellipe / gist:4601852
Last active December 11, 2015 12:38
CSS FTW

#CSS FTW My way to face the challenge: Maintainable + Efficient + Optimized

##General

  • YSlow + Page Speed (Performance Rules)…
  • CSSLint Rules…
  • Don’t use too many web fonts talk to your designer, and explain the impact of loading many sources.

##Tools

@evangalen
evangalen / app.js
Created March 3, 2013 18:49
AngularJS Starter with Jasmine unit testing integrated (for usage in "http://plnkr.co/")
var app = angular.module('plunker', []);
app.controller('MainCtrl', function($scope) {
$scope.name = 'World';
});
@thiago
thiago / new_params.js
Last active December 15, 2015 07:29
Convert string to object. The string format is like facebook api: https://developers.facebook.com/tools/explorer
/*
Example usage Parse
var string = "user(1),about,accounts.limit(20).fields(hometown,albums.limit(10).fields(comments))"
PARAMS.parse(string);
return {
'about': null,
'accounts': {
'fields': {
'hometown': null,
'albums': {
@filipekiss
filipekiss / _size.sass
Last active December 18, 2015 06:08
A simple mixin to generate font-size rules using rem and a px fallback. Read more here: http://snook.ca/archives/html_and_css/font-size-with-rem and here http://blog.typekit.com/2011/11/09/type-study-sizing-the-legible-letter/
=size($property , $size, $size-right: false, $size-bottom: false, $size-left: false)
@if $size == $size-bottom and $size-right == $size-left //Check if we can discard size-bottom
$size-bottom: false
@if $size-right == $size-left //If horizontal sizes are equal we only need one of the properties
$size-left: false
@if $size and $size-right == false //All equal
#{$property}: $size * 1px
#{$property}: $size * 0.1rem
@if $size and $size-right != false and $size-bottom == false // Vertical and Horizontal
#{$property}: $size * 1px $size-right * 1px

I wrote this in early January 2012, but never finished it. The research and thinking in this area led to a lot of the design of Yeoman and talks like "Javascript Development Workflow of 2013", "Web Application Development Workflow" and "App development stack for JS developers" (surpisingly little overlap in those talks, btw).

Now it's June 2013 and the state of web app tooling has matured quite a bit. But here's a snapshot of the story from 18 months ago, even if a little ugly and incomplete. :p


In the beginning…

  • Intro to tooling
@ebidel
ebidel / Web Components Resources.md
Last active February 27, 2023 22:04
List of resources related to Web Components