This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<craft name="table"> | |
<param name="length" type="int" default="50"/> | |
<param name="width" type="int" default="60"/> | |
<param name="legHeight" type="int" default="20"/> | |
<stack color="blue"> | |
<!-- Top --> | |
<!--<sphere size="{{length}} {{width}} 5"></sphere> --> | |
<cylinder radius="{{length}}" height="3"/> | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<craft> | |
<info> | |
<title><!-- Add a title here --></title> | |
</info> | |
<cube></cube> | |
</craft> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import feedparser | |
import re | |
import json | |
import os.path | |
from gensim import corpora, models, similarities | |
from newspaper import Article | |
texts = [] | |
if not os.path.isfile('data.json'): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html class="ocks-org do-not-copy"><head><meta charset="utf-8"> | |
<script src="http://d3js.org/d3.v3.min.js"></script><style type="text/css"></style> | |
<body> | |
<script>(function() { | |
var n = 243; | |
var duration = 750; | |
var now = new Date(Date.now() - duration); | |
var count = 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<style> | |
body { | |
font: 10px sans-serif; | |
} | |
.axis path, | |
.axis line { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<style> | |
svg { | |
font: 10px sans-serif; | |
} | |
.line { | |
fill: none; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> brew install node | |
> npm install -g express | |
> express node-app | |
> cd node-app && npm install | |
> node app.js |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> brew update | |
> ruby-build --definition | |
> brew install rbenv | |
> brew install ruby-build | |
> brew install rbenv-vars | |
> brew install ctags | |
> brew install openssl | |
> brew upgrade readline |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> git ls-tree HEAD | |
> git cat-file blob :sha | |
> git diff --name-only | |
> git rev-parse --show-toplevel |