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
<!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
<!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
<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
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
<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
<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 name="chair"> | |
<param name="length" type="int" default="15"/> | |
<param name="legHeight" type="int" default="14"/> | |
<stack l="alignX(0%)" color="peru"> | |
<!-- Back --> | |
<stack spacing="-13"> | |
<stack spacing="-4"> | |
<cylinder height="1" radius="6" | |
t="rotateY(90) |
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>Gear</title> | |
</info> | |
<craft name="sun-layout" module="sun-layout"/> | |
<param name="diameter" default="10" type="int"/> | |
<param name="teeth" default="10" type="int"/> | |
<param name="center_diameter" default="1.5" type="int"/> |
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>Untitled</title> | |
</info> | |
<param name="h" type="int" default="20" | |
label="height of the cylinder"/> | |
<param name="n" type="int" default="3" | |
label="number of spheres"/> |