Skip to content

Instantly share code, notes, and snippets.


Daniel Mascena danielmascena

Block or report user

Report or block danielmascena

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
danielmascena / 0_reuse_code.js
Created Oct 25, 2015
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
danielmascena / gist:4234521
Created Dec 7, 2012 — forked from paulirish/gist:4158604
Learn JavaScript concepts with recent DevTools features
View gist:4234521

Learn JavaScript concepts with the Chrome DevTools

Authored by Peter Rybin , Chrome DevTools team

In this short guide we'll review some new Chrome DevTools features for "function scope" and "internal properties" by exploring some base JavaScript language concepts.


Let's start with closures – one of the most famous things in JS. A closure is a function, that uses variables from outside. See an example:

danielmascena / cfb2.rb
Created Jul 12, 2012 — forked from jimweirich/cfb2.rb
Inspired by "Programming with Nothing" See comment below for some details.
View cfb2.rb
require './interface'
puts to_strings(->(limit) {
->(lst) {
->(f) {
->(f) {
->(g) {
->(n) {
}.(->(g) {
danielmascena / skills.html
Created Jul 6, 2012 — forked from vybs/skills.html
simple skills list dust template
View skills.html
<div class="section" id="profile-skills" style="display:block">
<div class="header">
<h2>{@pre:i18n text="Skills"}</h2>
{?skills} {! we still want to display the Skills heading, even if the number of skills is zero !}
<div class="content">
<ol class="skills" id="skills-list">
<li class="competency show-bean">
View gist:1125404
By Klaus Wuestefeld
1) Torne-se excelente.
Seja realmente bom em alguma coisa. Não fique só choramingando ou
querendo progredir às custas dos outros. Não pense q pq vc sentou 4
anos numa faculdade ouvindo um professor falar sobre software q vc
sabe alguma coisa. Jogador de futebol não aprende a jogar bola tendo
aula. Ele pratica. Instrumentistas geniais nao aprendem a tocar tendo
aula. Eles praticam. Pratique. Chegue em casa depois do trabalho e da
You can’t perform that action at this time.