Skip to content

Instantly share code, notes, and snippets.

View carlosperez's full-sized avatar

Carlos Perez carlosperez

View GitHub Profile
@carlosperez
carlosperez / Toggle-Switch.markdown
Created July 8, 2014 15:03
A Pen by Carlos Perez.
@carlosperez
carlosperez / console-log.sublime-snippet
Last active August 29, 2015 14:06
A Sublime Text snippet shortcut for console.log
<snippet>
<content><![CDATA[
console.log(${1});
]]></content>
<tabTrigger>cl</tabTrigger>
</snippet>
@carlosperez
carlosperez / graph.js
Created October 3, 2014 15:45
Force d3 to output the xlink namespace on anchor tags
vis.select('#points')
.selectAll('.point')
.enter()
.append('svg:a')
.attr('xlink:xlink:href', '#') // add the namespace TWICE
.append('svg:circle')
// and so on and so forth
{
"ignore": [
"**/node_modules/**",
"**/vendor/**",
"**/**-min-**",
"**/**-min.**",
"**/**.min.**",
"bower_components/**",
"dist/**",
"_artifact/**",