Skip to content

Instantly share code, notes, and snippets.

@fredericksilva
fredericksilva / Array-map-and-filter
Created June 18, 2015 14:07
Chaining the Array map and filter methods Arquivo 3
var exchanges = [
[
{ symbol: "XFX", price: 240.22, volume: 23422 },
{ symbol: "TNZ", price: 332.19, volume: 234 }
],
[
{ symbol: "JXJ", price: 120.22, volume: 5323 },
{ symbol: "NYN", price: 88.47, volume: 98275 }
]
];
var angular = require('angular');
// We can also make a TodoStore
var _todoState = {
todos: [
{ value:'finish example', created_at: new Date() },
{ value:'add tests', created_at: new Date() }
]
};
Object.prototype.defineMethod = function(methodName, methodBody) {
Object.defineProperty(this, methodName, {
enumerable: true,
configurable: true,
value: methodBody
});
@fredericksilva
fredericksilva / gist:dd5d696bb1c4312a6a33
Created June 19, 2015 11:19
Color and FontType console.log
console.log("%c%s",
"color: red; background: yellow; font-size: 24px;",
"WARNING!");
@fredericksilva
fredericksilva / arch.md
Last active August 29, 2015 14:23 — forked from alganet/arch.md
# UX para Developers - Referências
## Soluções prontas
- jQuery Mobile (http://www.jquerymobile.com)
- HTML 5 Boilerplate (http://html5boilerplate.com)
## Ferramentas
- Spin.js (http://fgnass.github.com/spin.js)
@fredericksilva
fredericksilva / maillist.json
Last active August 27, 2015 18:14
SieveChallange
[
{
"name" : "Tupac Yupanqui",
"email" : "[email protected]",
"assunto": "loren Do mesmo modo 5",
"date" : "07/08/2015"
},
{
"name" : "Simon Bolivar Buckner",
"email" : "[email protected]",
@fredericksilva
fredericksilva / WhoamI.md
Created August 31, 2015 10:22
Quem eu Sou
@fredericksilva
fredericksilva / Remove all git tags
Created January 14, 2016 12:58 — forked from okunishinishi/Remove all git tags
Delete all git remote tags
#Delete local tags.
git tag -l | xargs git tag -d
#Fetch remote tags.
git fetch
#Delete remote tags.
git tag -l | xargs -n 1 git push --delete origin
#Delete local tasg.
git tag -l | xargs git tag -d
@fredericksilva
fredericksilva / gist:9c57661688ee490abad6
Created January 27, 2016 14:00 — forked from Killavus/gist:22cfcf961e21edf27141
Simple backend class example.
class Backend
getData: ->
request = $.ajax
type: "GET"
dataType: "JSON"
url: '/foo'
request.pipe (response) ->
DomainObject.fromJSON(response)
# And then in initializer code: