Skip to content

Instantly share code, notes, and snippets.

@ccstone
ccstone / BBEdit-TextWrangler_RegEx_Cheat_Sheet.txt
Last active May 10, 2024 15:41
BBEdit-TextWrangler Regular Expression Cheat-Sheet
————————————————————————————————————————————————————————————————————————————————————————————————————
BBEdit / BBEdit-Lite / TextWrangler Regular Expression Guide Modified: 2018/08/10 01:19
————————————————————————————————————————————————————————————————————————————————————————————————————
NOTES:
The PCRE engine (Perl Compatible Regular Expressions) is what BBEdit and TextWrangler use.
Items I'm unsure of are marked '# PCRE?'. The list while fairly comprehensive is not complete.
@sathomas
sathomas / README.md
Last active January 31, 2017 22:19
Understanding D3.js Force Layout - 1: The Simplest Possible Graph

This is part of a series of examples that describe the basic operation of the D3.js force layout. Eventually they may end up in a blog post that wraps everything together.

The first example creates the simplest possible graph using a force layout. The comments in the code walk through the steps in creating a force directed graph.

Things start to get more interesting in the next example.

@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();
@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{
@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.
@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/
*/
@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
@WillTurman
WillTurman / README.md
Last active October 9, 2016 02:07
D3 Star Trails
@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;
}
@philipcdavis
philipcdavis / Readme.md
Last active January 22, 2017 00:54
Moire
We couldn’t find that file to show.