Skip to content

Instantly share code, notes, and snippets.

View caridy's full-sized avatar

Caridy Patiño caridy

  • Salesforce, Inc.
  • Miami, FL.
  • X @caridy
View GitHub Profile
@tilomitra
tilomitra / scrollview.js
Created August 26, 2011 23:47
YUI3 Scrollview config to make scrolling feel smoother
var scrollView = new Y.ScrollView({
srcNode: '#resultList',
height: 260,
flick: {
minDistance:1,
minVelocity:0.4,
axis: "y"
},
deceleration: 0.983,
bounce:0.65,
@kloots
kloots / menu-button-arrow.png
Created February 23, 2012 22:43
ARIA Widget Examples Using jQuery
menu-button-arrow.png
@buritica
buritica / iosd
Created March 29, 2012 18:52
Enable Remote Inspector on Mobile Safari
#!/bin/bash
# Open iPhone Simulator on default location for XCode 4.3 if found
[[ -d /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone\ Simulator.app/ ]] &&
open /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone\ Simulator.app
# Open iPhone Simulator on default location for XCode 4.2 if found
[[ -d /Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone\ Simulator.app/ ]] &&
open /Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone\ Simulator.app
@rgrove
rgrove / node-scroll-info.js
Created June 6, 2012 21:35
node-scroll-info.js
/*!
Copyright (c) 2012 Ryan Grove. All rights reserved.
Redistribution and use of this software in source and binary forms, with or
without modification, are permitted provided that the following conditions are
met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
@jcohen
jcohen / output
Created August 7, 2012 22:25
Upload photos using the Flickr API from node (and Mikeal's request using oauth and multipart)
$ time node upload.js
Error: null
Body: <?xml version="1.0" encoding="utf-8" ?>
<rsp stat="ok">
<photoid>7735964772</photoid>
</rsp>
real 0m5.517s
user 0m0.106s
@voidfiles
voidfiles / app_net_grids.md
Created August 15, 2012 19:01
How App.net uses YUI3 grids

How you can create a responsive grid system using YUI3 grids and SASS

This is a quick rundown of how and why we use YUI3 grids at App.net

As far as I can tell there are three types of CSS grids: a static-width pre-defined grid, a flexible-width pre-defined grid, and a generative grid. In the first two grids (pre-defined width), you basically decide how many columns you have across the screen, and then create blocks in any multiple of those. This pattern often looks like "span-4", "span-6", "pull-10", "push-5", etc. You find this style in popular frameworks like Bootstrap and Blueprint.

The third way, the generative/recursive grid system, doesn't seem to be as popular as the others. I am not entirely sure why, because the generative grid can pack more punch in less lines. In this vein is there is OOCSS and YUI3 CSS Grids.

@juandopazo
juandopazo / result.js
Created October 6, 2012 17:33
YUI TypeScript definitions
module Y {
interface Anim extends Base {
}
interface App extends App_Base, App_Content, App_Transitions, PjaxContent {
(config?: any);
@davglass
davglass / .gitignore
Created October 12, 2012 21:50 — forked from caridy/m.js
node_modules
[
{
"settings": [ "master" ],
"appPort": 80,
"staticHandling": {
"cache": true
},
"yui": {
"config": {
"combine": true,
@caridy
caridy / test.js
Created November 20, 2012 17:44
YUI.JSON.* vs JSON.* in Node.JS
var Y = require('yui/json'),
microtime = require('microtime'),
i,
t,
obj = {
foo: {
bar: {
baz: 'token'
}
}