Skip to content

Instantly share code, notes, and snippets.

View berteh's full-sized avatar

Berteh berteh

View GitHub Profile
@czoins
czoins / Dart.tmLanguage
Last active February 1, 2024 09:53
Dart syntax highlighting for Sublime Text ported from VS Code's Dart plugin (https://github.com/Dart-Code/Dart-Code/blob/master/syntaxes/dart.json). Place in "Sublime Text 3\Packages\User" or "Sublime Text\Packages\User". Create the folder "User" if it doesn't exist. Check "https://www.sublimetext.com/docs/side_by_side.html" if you don't know wh…
<plist version="1.0">
<dict>
<key>name</key>
<string>Dart</string>
<key>fileTypes</key>
<array>
<string>dart</string>
</array>
<key>scopeName</key>
<string>source.dart</string>
@sarciszewski
sarciszewski / README.md
Created March 8, 2015 05:50
Twig 2.0 without Composer

Your mileage may vary, depending on how you set up the directory structure

@wmleler
wmleler / .block
Last active June 23, 2023 15:53
Radial Tree with UI
license: bsd-3-clause # Copyright 2015 Wm Leler
@dimaursu
dimaursu / web_dev.gpl
Last active December 29, 2023 05:07
50 web design color palettes in GPL format
GIMP Palette
Name: Web design
#
105 210 231 Giant Goldfish
167 219 219
224 228 204
243 134 48
250 105 0
255 255 255 separator
233 76 111 Cardsox
@HermanSontrop
HermanSontrop / index.html
Last active October 27, 2020 13:57
d3.js collapsible radial tree
<!DOCTYPE html>
<meta charset="utf-8">
<style>
.node {
cursor: pointer;
}
.node circle {
fill: #fff;
stroke: steelblue;
@kgryte
kgryte / README.md
Last active April 21, 2024 02:33
Nightingale's Rose + D3.js

Nightingale's Rose

D3.js visualization of the famous polar area diagram from Florence Nightingale's "A contribution to the sanitary history of the British army during the late war with Russia".

Two works served as the inspiration for this implementation:

A few comments. Bostock's implmentation, while visually similar to Nightingale's visualization, is wrong. First, the data is not correct. You can verify this in Nightingale's original work. Second, Bostock directly maps the wedge radius to deaths. This mistake is common. Instead, Nightingale represents deaths in terms of area, thus requiring the radius for each

// Includes functions for exporting active sheet or all sheets as JSON object (also Python object syntax compatible).
// Tweak the makePrettyJSON_ function to customize what kind of JSON to export.
var FORMAT_ONELINE = 'One-line';
var FORMAT_MULTILINE = 'Multi-line';
var FORMAT_PRETTY = 'Pretty';
var LANGUAGE_JS = 'JavaScript';
var LANGUAGE_PYTHON = 'Python';
@berteh
berteh / svg-objects-export.bat
Last active May 11, 2016 02:30
Export SVG elements to other formats (png, pdf, ps, eps, svg), selecting them based on their ID with regular expressions. Useful for designing multiple icons in single file, sprite sheets, or multi-page documents with Inkscape (or another SVG editor). Easily generate low-resolution and high-resolution renders of some of the objects included in v…
:: In Windows Inkscape is shipped with a Python interpreter, you don't need to install it.
::
:: save both files in same directory as inkscape.exe and call
:: svg-objects-export.bat <svg-objects-export options> infiles+
@"./python/python.exe" svg-objects-export.py %* -i .\inkscape.com
@pgaertig
pgaertig / transpose_table.js
Created April 13, 2012 13:48
Transpose HTML table using jQuery
$(function() {
var t = $('#thetable tbody').eq(0);
var r = t.find('tr');
var cols= r.length;
var rows= r.eq(0).find('td').length;
var cell, next, tem, i = 0;
var tb= $('<tbody></tbody>');
while(i<rows){
cell= 0;
@RichMorin
RichMorin / demo.css
Created March 19, 2012 16:20
Hive Plot Demo Rework
/* demo.css */
.axis {
stroke: #000;
stroke-width: 1.5px;
}
#demo_1 svg, #demo_2 svg { border: solid 1px #ccc; }