Skip to content

Instantly share code, notes, and snippets.

View retrofox's full-sized avatar
🦊
🪞

Damián Suárez retrofox

🦊
🪞
View GitHub Profile
@retrofox
retrofox / wd4d-lisboa-2024.css
Last active July 19, 2024 14:02
wd4d-lisboa-2024
/**
* Schedule day
*/
.wordcamp-schedule__day {
backgroung-color: red;
}
var fromArgs = require('browserify/bin/args');
var watchify = require('../');
var defined = require('defined');
var xtend = require('xtend');
var glob = require('glob');
module.exports = function (args) {
var b = fromArgs(args, watchify.args);
var opts = {};
<script src="wpcom.js"> </script>
<script>
// create a client WPCOM instance
var wpcom = WPCOM();
// retrieve a listing of the most recent
// 5 posts on "en.blog.wordpress.com"
wpcom
.site('en.blog.wordpress.com')
.postsList({ number: 5 }, function(err, data) {
@retrofox
retrofox / gist:5949542aaa85ca3672b2
Last active August 29, 2015 14:11
wpcom.js example
<script src="wpcom.js"></script>
<script>
// create a client WPCOM instance
var wpcom = WPCOM();
// retrieve a listing of the most recent
// 5 posts on "en.blog.wordpress.com"
wpcom
.site('en.blog.wordpress.com')
.postsList({ number: 5 }, function(err, data) {
@retrofox
retrofox / gist:3872130
Created October 11, 2012 13:04
Tutorial DataTable - make all
clear
make clean
rm -fr build components template.js
make
 install : component/inherit@master
install : component/emitter@master
 install : visionmedia/superagent@master
 install : component/pager@master
 dep : component/emitter@0.0.6
@retrofox
retrofox / gist:3871857
Created October 11, 2012 11:56
Tutorial DataTable - Dependencies
{
"name": "data-table",
"repo": "retrofox/data-table",
"description": "Table data manager. It allow us add/remove rows, sort, pager, and filter.",
"version": "0.1.0",
"keywords": [],
"dependencies": {
"component/inherit": "*",
"component/emitter": "*",
"visionmedia/superagent": "*",
@retrofox
retrofox / gist:3869920
Created October 11, 2012 03:02
Component search capture
visionmedia/superagent
url: https://github.com/visionmedia/superagent
desc: awesome http requests
★ 487
visionmedia/page.js
url: https://github.com/visionmedia/page.js
desc: Tiny client-side router (~1200 bytes)
★ 367
res.json = function(obj, headers, status){
var body = JSON.stringify(obj)
, callback = this.req.query.callback
, jsonp = this.app.enabled('jsonp callback');
this.charset = this.charset || 'utf-8';
this.header('Content-Type', 'application/json');
if (callback && jsonp) {
this.header('Content-Type', 'text/javascript');
502 -> keys -> [ meredith@learnboost.com, Ely, Meredth, Meredth Ely ]
501 -> keys -> [ Suarez, Damian, Damian Suarez ]
500 -> keys -> [ laura@learnboost.com, Melo, Laura, Laura Melo ]
499 -> keys -> [ laura@learnboost.com, Melo, Laura, Laura Melo ]
498 -> keys -> [ ]
497 -> keys -> [ ]
496 -> keys -> [ ]
495 -> keys -> [ ]
494 -> keys -> [ ]
493 -> keys -> [ ]
XMLHttpRequestProgressEvent
bubbles: false
cancelBubble: false
cancelable: true
clipboardData: undefined
currentTarget: XMLHttpRequest
defaultPrevented: false
eventPhase: 2
lengthComputable: false
loaded: 0