This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Table copier | |
// @version 0.1 | |
// @description Copy a table to clipboard. Pasteable into spreadsheets. | |
// @author Jakub Marcinkowski <kuba.marcinkowski on g mail> | |
// @match http*://*/* | |
// @grant GM_registerMenuCommand | |
// @grant GM_setClipboard | |
// ==/UserScript== |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { JSDOM } = require("jsdom"); | |
const responsiveImage = require("./src/js/responsive-image"); | |
// Set the project root for use with Sharp. | |
global.__rootdir = __dirname; | |
module.exports = function(eleventyConfig) { | |
eleventyConfig.addPassthroughCopy("img"); | |
eleventyConfig.addTransform("transform-sharp", async function( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Run in console on the history page (http://trakt.tv/users/<username>/history) | |
// Will remove all the duplicate episodes, on that page, from the watched history. | |
var episodesRemoved = [] | |
// episodeItems = $("[data-type=episode]") | |
episodeItems.each(function(){ | |
var $this = $(this); | |
var episodeId = $this.data('episode-id') | |
var showId = $this.data('show-id') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* This script will scrape text posts from a Tumblr blog and export them as `.md` | |
* files with YAML frontmatter ready to be used in a Middleman blog. | |
* | |
* Aliases are added for the _middleman-alias_ gem so Tumblr style URLs like | |
* `/post/{id}/{slug}` will redirect to the Middleman-style URL. | |
* | |
* Although I built this for migrating to Middleman it should be pretty easy to | |
* adapt this for any similar static site generator. | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
float[] hann(float[] x) { | |
int n = x.length; | |
float[] result = new float[n]; | |
for(int i = 0; i < n; i++) { | |
float weight = .5 * (1 - cos((TWO_PI * i) / (n - 1))); | |
result[i] = x[i] * weight; | |
} | |
return result; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int[][] result; | |
float time; | |
void setup() { | |
setup_(); | |
result = new int[width*height][3]; | |
} | |
void draw() { | |
for (int i=0; i<width*height; i++) |
- A List Apart Using SVG For Flexible, Scalable, and Fun Backgrounds, Part I
- Mozilla Applying SVG effects to HTML content
- Smashing Magazine Resolution Independence With SVG
- Smashing Magazine Rethinking Responsive SVG
- CSS Tricks http://css-tricks.com/svg-sprites-use-better-icon-fonts/
#Reporter Save File Schema
##The Reporter Export File
Reporter saves to your Dropbox account with plaintext JSON files, one for each day. When a Report is entered in the app a file is created for that day if it does not exist. Otherwise, the report is appended to the existing file. The save folder is located in 'Dropbox/Apps/Reporter-App/'.
Reporter save files are named according to the following convention:
YYYY-MM-DD-reporter-export.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Post | |
@data = Gollum::Wiki.new('doc/blog.git', :mathjax => true) | |
@@unindexable = 'page' | |
@@unreadable = 'pending' | |
def self.data | |
@data | |
end | |
def self.reload |
NewerOlder