Skip to content

Instantly share code, notes, and snippets.

@svale
svale / .stylelintrc
Created March 9, 2017 22:39
humf css stylelint rules
{
"comments": {
"properties-order" : "smacss style, see: https://github.com/brigade/scss-lint/blob/master/data/property-sort-orders/smacss.txt"
},
"extends": [
"stylelint-config-standard",
"stylelint-config-sass-guidelines"
],
@svale
svale / data.csv
Last active November 7, 2017 10:29
A Buble Chart with Axis
Rank CountryCode SecrecyJurisdiction FSI SecrecyScore GlobalScaleWeight Highlight
1 CHE Switzerland 1466.1 73 5.625 0
2 HKG Hong Kong 1259.4 72 3.842 0
3 USA USA 1254.8 60 19.603 0
4 SGP Singapore 1147.1 69 4.28 0
5 CYM Cayman Islands 1013.2 65 4.857 0
6 LUX Luxembourg 817 55 11.63 0
7 LBN Lebanon 760.2 79 0.377 1
8 DEU Germany 701.9 56 6.026 0
9 BHR Bahrain 471.4 74 0.164 0
@svale
svale / .block
Last active June 30, 2019 23:27
Remittances Chord Diagram
license: gpl-3.0
height: 960
border: no
@svale
svale / .block
Last active October 26, 2017 09:49
Multiple Series Line Chart
license: gpl-3.0
height: 720
border: no
@svale
svale / .block
Last active January 1, 2020 23:04
Morphing Streamgraph
license: gpl-3.0
height: 720
border: no
@svale
svale / .block
Last active March 20, 2018 11:15
Scrolling morphing area stack
license: gpl-3.0
height: 720
border: yes
scrolling: yes
@svale
svale / .block
Last active February 7, 2018 09:39
Responsive CSS Grid Layout
license: gpl-3.0
width: 599
border: yes
@svale
svale / export.php
Last active June 11, 2018 13:51 — forked from engram-design/export.php
ExpressionEngine PHP Export into JSON
<?php
header('Content-type: application/json; charset=utf-8'); //Setting the page Content-type
$content = array();
$channel = $_GET['id'];
$fields_query_string = "SELECT * FROM exp_channel_fields LEFT JOIN exp_channels ON exp_channel_fields.group_id = exp_channels.field_group WHERE exp_channels.channel_id = '$channel'";
$entries_query_string = "SELECT * FROM exp_channel_data cd INNER JOIN exp_channel_titles ct ON cd.entry_id = ct.entry_id WHERE cd.channel_id = '$channel'";
// query single field
if(isset($_GET['field'])) {
@svale
svale / _entry.twig
Last active August 28, 2019 13:23
Skogkart PoC Craft templates
{# Globale settings som settes i egne felter CMSet #}
{% set mapUrl = mapSettings.mapUrl %}
{% set mapVersion = mapSettings.mapVersion|default( 'now'|date('U') ) %}
{# Kartet boostrappes #}
{% set output = 'script' %}
<!doctype html>
<html class="no-js" lang="">
<head>