Skip to content

Instantly share code, notes, and snippets.

View lagden's full-sized avatar
🎯
Focusing

Thiago Magalhães lagden

🎯
Focusing
  • São Paulo
View GitHub Profile
@lagden
lagden / qs.js
Created June 29, 2015 19:18
query string to javascript object
/* globals console */
'use strict';
function parseQS(str) {
var strArr = String(str)
.replace(/^&/, '')
.replace(/&$/, '')
.split('&');
var sal = strArr.length;
var i;
@lagden
lagden / Custom-select-box.markdown
Created November 25, 2014 22:02
Custom select box
@lagden
lagden / LICENSE.txt
Last active August 29, 2015 14:06 — forked from addyosmani/README.md
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2014
Copyright (C) 2014 Addy Osmani @addyosmani
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@lagden
lagden / scrollToAnimated
Created September 2, 2014 05:53
scrollToAnimated
// scrollToAnimated
(function(window) {
'use strict';
// provides requestAnimationFrame in a cross browser way
window.requestAnimFrame = (function() {
'use strict';
return window.requestAnimationFrame ||
window.webkitRequestAnimationFrame ||
<link rel="import" href="../polymer/polymer.html">
<polymer-element name="switch-radio" role="checkbox" tabindex="0" attributes="checked captionOn captionOff" touch-action="pan-y" aria-label="Always" aria-checked="false">
<template>
<style>
:host {
display: inline-block;
position: relative;
}
<link rel="import" href="../core-animated-pages/core-animated-pages.html">
<link rel="import" href="../core-animated-pages/transitions/hero-transition.html">
<link rel="import" href="../core-animated-pages/transitions/cross-fade.html">
<link rel="import" href="../core-animated-pages/transitions/slide-down.html">
<link rel="import" href="../core-animated-pages/transitions/slide-up.html">
<link rel="import" href="../core-animated-pages/transitions/tile-cascade.html">
<polymer-element name="my-element">
<template>
<div class="switchRadio">
<input data-title="Funciona?" required="1" name="isso[funciona]" type="radio" value="1" id="funca_1" aria-required="true">
<input data-title="Funciona?" required="1" name="isso[funciona]" type="radio" value="0" id="funca_0" aria-required="true">
<label data-title="Funciona?" required="1" for="funca_1" class="ir radio__handler" aria-required="true">Sim</label>
<label data-title="Funciona?" required="1" for="funca_0" class="ir radio__handler" aria-required="true">Não</label>
</div>
@lagden
lagden / Requirejs-+-Angular.markdown
Created June 28, 2014 20:17
A Pen by Thiago Lagden.

Requirejs + Angular

An example of how you can use Angular with Requirejs. Plus: Using a service to make the communication between controllers

A Pen by Thiago Lagden on CodePen.

License.

@lagden
lagden / Simple-Responsive-Form.markdown
Created May 30, 2014 21:53
A Pen by Chris Coyier.

Example Opentip with Requirejs

Simple example showing how to use Opentip with Requirejs. Obs.: with retina support

A Pen by Thiago Lagden on CodePen.

License.