This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
######################### | |
# .gitignore file for Xcode4 / OS X Source projects | |
# | |
# Version 2.0 | |
# For latest version, see: http://stackoverflow.com/questions/49478/git-ignore-file-for-xcode-projects | |
# | |
# 2013 updates: | |
# - fixed the broken "save personal Schemes" | |
# | |
# NB: if you are storing "built" products, this WILL NOT WORK, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
######################### | |
# .gitignore file for Xcode4 / OS X Source projects | |
# | |
# Version 2.0 | |
# For latest version, see: http://stackoverflow.com/questions/49478/git-ignore-file-for-xcode-projects | |
# | |
# 2013 updates: | |
# - fixed the broken "save personal Schemes" | |
# | |
# NB: if you are storing "built" products, this WILL NOT WORK, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getSomething() { | |
/** | |
* Returns a promise that fullfills in 15 seconds | |
**/ | |
if (getSomething._promise) { | |
return getSomething._promise; | |
} else { | |
return getSomething._promise = new Promise(function(resolve, reject) { | |
setTimeout(function() { | |
getSomething._promise = null; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" | |
"http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd"> | |
<html> | |
<head> | |
<title>Checkbox personalizzate</title> | |
<style> | |
#custom_checkbox input[type=checkbox] { display: none; } | |
#custom_checkbox label { padding-left: 20px; background-position: 0px center; | |
background-repeat: no-repeat; cursor: pointer; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function CONAN(cls) { | |
/* Arbitrary Number of Arguments Object Constructor, | |
ANAOC | |
but everyone calls him | |
CONAN | |
CONAN takes a Object Constructor and adds a static method named "build", whose only | |
argument is an array that get passed to the Constructor with an apply. | |
*/ | |
var _helper = function(s) { | |
cls.apply(this, s); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* global YUI=true */ | |
/* Note: the "png" prefix you're seeing through this file is just my own | |
namespace. No reference to the Portable Network Graphic intended. */ | |
YUI.add('png-entity', function(Y) { | |
/** | |
The ContainmentUnit's purposes are: creating Entity extensions, store them and handle | |
the relations between them. | |
@class ContainmentUnit | |
@constructor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Return a new object from an array of key/value pairs. | |
* Inspired by the "dict" constructor in python. | |
* | |
* @method dict | |
* @param {Array} arr An array of key/value pairs. | |
* @return {Object} A new object | |
* @static | |
*/ | |
Y.namespace('Object').dict = function(arr) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
YouTube Footer Buttons | |
*/ | |
.button { | |
border: 1px solid #DDD; | |
border-radius: 3px; | |
text-shadow: 0 1px 1px white; | |
box-shadow: 0 1px 1px #fff; | |
font: bold 11px Sans-Serif; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Handlebars.registerHelper 'each_with_index', (array, fn) -> | |
buffer = '' | |
for i in array | |
item = i | |
item.index = _i | |
buffer += fn(item) | |
buffer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html class="ynap-fe-exercise" lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700" rel="stylesheet"> | |
<link href="index.css" rel="stylesheet"> | |
<script src="index.js"></script> | |
<script id="ynap-news-story-tmpl" type="text/x-template"> |
OlderNewer