Skip to content

Instantly share code, notes, and snippets.

@IanColdwater
IanColdwater / twittermute.txt
Last active April 22, 2024 17:26
Here are some terms to mute on Twitter to clean your timeline up a bit.
Mute these words in your settings here: https://twitter.com/settings/muted_keywords
ActivityTweet
generic_activity_highlights
generic_activity_momentsbreaking
RankedOrganicTweet
suggest_activity
suggest_activity_feed
suggest_activity_highlights
suggest_activity_tweet

Your First Block

To make things simple, we're going to make a semi-structured way to display a mailing address.

We're going to start with a file tree that looks like this:

address-block
  ├ blocks
  | ├ address.jsx
@philipcdavis
philipcdavis / Readme.md
Last active January 22, 2017 00:54
Moire
We couldn’t find that file to show.
@josdirksen
josdirksen / default.css
Last active February 25, 2018 20:35
Voronoi fractals using d3.js
* {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
span {
font-size: smaller;
}
@WillTurman
WillTurman / README.md
Last active October 9, 2016 02:07
D3 Star Trails
@benhoyt
benhoyt / ngrams.py
Created May 12, 2016 15:34
Print most frequent N-grams in given file
"""Print most frequent N-grams in given file.
Usage: python ngrams.py filename
Problem description: Build a tool which receives a corpus of text,
analyses it and reports the top 10 most frequent bigrams, trigrams,
four-grams (i.e. most frequently occurring two, three and four word
consecutive combinations).
NOTES
@edmorais
edmorais / LSI 2016-05 SolLeWitt.pde
Last active October 18, 2016 03:16
Reproduz o 'Wall Drawing #392' de Sol LeWitt (1983) e no final grava uma imagem. http://www.openprocessing.org/sketch/348952
/*_ ___ ___ ___ __ _ __
| | / __|_ _|_ ) \/ |/ /
| |__\__ \| | / / () | / _ \
|____|___/___/___\__/|_\___/
Aula de 18/04/2016:
Reproduz o 'Wall Drawing #392' de Sol LeWitt (1983) e no final grava uma imagem.
Por Eduardo Morais / FBAUP - www.eduardomorais.pt/fbaup/
*/
@brattonc
brattonc / README.md
Last active November 20, 2023 17:14
D3 Liquid Fill Gauge

Liquid Fill Gauge v1.1 - 7/14/2015

Changes:

  • Added support for updating the gauge value after loading is complete. The loadLiquidFillGauge method now returns an object with an update method which allows the gauge value to be changed. Click any of the gauges above to randomly update their value.

Configurable features include:

  • Changeable min/max values.
  • All colors.
@1wheel
1wheel / index.html
Last active October 18, 2016 03:16
sol-#392
<!DOCTYPE html>
<meta charset="utf-8">
<title>Sol Lewitt - Wall Drawing #392</title>
<style>
body{
margin: 0px;
overflow: hidden;
}
svg{
@jerel
jerel / page.js
Last active November 27, 2019 23:24
Making the default Twitter tweet widgets work in an EmberJS application. This adds the twitter widget script after the tweets are in the DOM.
// Method 1
// add the twitter widget library to the bottom of app/index.html (after your Ember app)
<script src="//platform.twitter.com/widgets.js" charset="utf-8"></script>
// initialize it after the content is in the DOM
import Ember from 'ember';
export default Ember.View.extend({
didInsertElement: function() {
window.twttr.widgets.load();