Skip to content

Instantly share code, notes, and snippets.

Carlos Perez carlosperez

View GitHub Profile
View gist:f024c4b71b5d678833c2
{
"ignore": [
"**/node_modules/**",
"**/vendor/**",
"**/**-min-**",
"**/**-min.**",
"**/**.min.**",
"bower_components/**",
"dist/**",
"_artifact/**",
@carlosperez
carlosperez / graph.js
Created Oct 3, 2014
Force d3 to output the xlink namespace on anchor tags
View graph.js
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
@carlosperez
carlosperez / console-log.sublime-snippet
Last active Aug 29, 2015
A Sublime Text snippet shortcut for console.log
View console-log.sublime-snippet
<snippet>
<content><![CDATA[
console.log(${1});
]]></content>
<tabTrigger>cl</tabTrigger>
</snippet>
View Toggle-Switch.markdown
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.