Skip to content

Instantly share code, notes, and snippets.

@flying-sheep
flying-sheep / index.html
Last active August 29, 2015 14:20
SVG test
<!doctype html>
<html>
<head>
<meta charset=utf-8>
</head>
<body>
<div style="width: 504pt; height: 504pt;"><svg style="width: 100%; height: 100%;" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="504pt" height="504pt" viewBox="0 0 504 504" version="1.1">
<defs>
<g>
<symbol overflow="visible" id="glyph0-0">
@flying-sheep
flying-sheep / Solarized (dark).kateschema
Last active August 29, 2015 14:21
Kate Python highlighting with new roles
[Default Item Styles - Schema Solarized (dark)]
Alert=ffd33682,ffd33682,1,,,,-,-,,---
Annotation=ff268bd2,ff268bd2,,,,,-,-,,---
Attribute=ff2980b9,ff268bd2,,,,,-,-,,---
Base-N Integer=ffb58900,ffb58900,,,,,-,-,,---
Built-in=ffeee8d5,ff93a1a1,,,,,-,-,,---
Character=ffdc322f,ffdc322f,,,,,-,-,,---
Comment=ff586e75,ff586e75,,,,,-,-,,---
Comment Variable=ff2aa198,ff2aa198,,,,,-,-,,---
Constant=fffdf6e3,ff93a1a1,1,,,,-,-,,---
@flying-sheep
flying-sheep / r-exports-imports.ipynb
Last active August 29, 2015 14:21
R Exports and Imports with roxygen2
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
# custom variables
_hkgname=blaze-html
_licensefile=LICENSE
# PKGBUILD options/directives
pkgname=haskell-blaze-html
pkgver=0.8.0.2
pkgrel=3
pkgdesc="A blazingly fast HTML combinator library for Haskell"
url="http://jaspervdj.be/blaze"
# custom variables
_hkgname=highlighting-kate
_licensefile=LICENSE
# PKGBUILD options/directives
pkgname=haskell-highlighting-kate
pkgver=0.6
pkgrel=1
pkgdesc="Syntax highlighting"
url="http://github.com/jgm/highlighting-kate"
@flying-sheep
flying-sheep / PKGBUILD
Last active September 5, 2015 09:53 — forked from chmue/PKGBUILD
Updated PKGBUILD for r-studio-bin
# Maintainer: Meow < a.li.devtty at gmail dot com >
# Get download links and md5 sums for latest version of RStudio desktop
cat <<_EOF_ >/dev/null
## R code #############
require(XML)
page = htmlTreeParse("http://www.rstudio.com/products/rstudio/download/",useInternalNodes = T)
links = sapply(getNodeSet(page,'//table[@class="downloads"]/thead/tr/th[text()="Installers"]/../../..//a[contains(@href,".deb")]'),xmlGetAttr,'href')
md5sums = sapply(getNodeSet(page,'//table[@class="downloads"]/thead/tr/th[text()="Installers"]/../../..//a[contains(@href,".deb")]/../..//code'),xmlValue)
print(cbind(links,md5sums))
#!/usr/bin/env python3
import sys
from colorsys import hsv_to_rgb
from shutil import get_terminal_size
block = '█'
fg = '\033[38;2;{r};{g};{b}m'
'use strict'
const svgsToLoad = document.querySelectorAll('svg[data-src]')
const loadSVGs = Array.from(svgsToLoad).map(svg => {
fetch(svg.getAttribute('data-src'))
.then(response => response.text())
.then(svgCode => {
const svgDoc = new DOMParser().parseFromString(svgCode, 'image/svg+xml')
const newSVG = svgDoc.documentElement
# Maintainer: Franois Garillot ("huitseeker") <francois [at] garillot.net>
# Contributor: Christian Krause ("wookietreiber") <kizkizzbangbang@gmail.com>
pkgname=apache-spark
pkgver=1.4.0
pkgrel=1
pkgdesc="fast and general engine for large-scale data processing"
arch=('any')
url="http://spark.apache.org"
license=('APACHE')
4.4.55
[es6] When comparing two symbols we may need to throw a TypeError (issue
4.3.19
[es6] Fix for-const loops (issue 3983).
4.2.71
Implement ES6 rest parameters (issue 2159).
4.2.26
ES6 Array.prototype.toString falls back on Object.prototype.toString if
4.2.18
Fix issue with __proto__ when using ES6 object literals (issue 3818).