List all posts, tags and categories in Jekyll.
Octopress users: if you found " is escaped in the generated JSON file, please change them to \". Refer to this issue.
| /** | |
| * Read file line by line "synchronous" | |
| * | |
| * require nodejs ~0.11, run with "node --harmony" | |
| * | |
| * Example: | |
| * | |
| * var readLineSync = require('./readLineSync'); | |
| * | |
| * |
| Copyright (c) 2010-2015 Giulia Alfonsi <electric.g@gmail.com> | |
| Permission is hereby granted, free of charge, to any person | |
| obtaining a copy of this software and associated documentation | |
| files (the "Software"), to deal in the Software without | |
| restriction, including without limitation the rights to use, | |
| copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| copies of the Software, and to permit persons to whom the | |
| Software is furnished to do so, subject to the following | |
| conditions: |
| var actualCharacter = -1; | |
| var alphabet = 'abcdefghijklmnopqrstuvwxyz!?1234567890 '; | |
| var word = window.prompt('Please a word or sentence you think is funny', | |
| 'badibaduba'); | |
| function setup() { | |
| colorMode(HSB, alphabet.length, word.length, 1, 1); | |
| createCanvas(windowWidth, windowHeight); | |
| } |
| var rows = []; | |
| var gridSquareSize = 20; | |
| function setup() { | |
| createCanvas(windowWidth, windowHeight); | |
| rectMode(CENTER); | |
| stroke(255); | |
| var amountOfRows = Math.max(windowHeight / gridSquareSize); | |
| var amountOfColumns = Math.max(windowWidth / gridSquareSize); | |
| for (let rowIndex = 0; rowIndex < amountOfRows; rowIndex++) { |
| FROM gliderlabs/alpine:3.3 | |
| COPY myawesomescript /bin/myawesomescript | |
| COPY root /var/spool/cron/crontabs/root | |
| RUN chmod +x /bin/myawesomescript | |
| CMD crond -l 2 -f |
List all posts, tags and categories in Jekyll.
Octopress users: if you found " is escaped in the generated JSON file, please change them to \". Refer to this issue.
Smooth transitioning US tour in the same vein as this example. Steps:
Some possible improvements:
| begin | |
| require 'terminal-notifier' | |
| module Jekyll | |
| class Site | |
| alias jekyll_process process | |
| def process | |
| jekyll_process | |
| TerminalNotifier.notify("🍻 Jekyll rebuild finished") | |
| rescue => e | |
| TerminalNotifier.notify("💥 Jekyll rebuild failed: #{e.message}") |
| require 'jekyll-assets' | |
| # optional notification for jekyll build completion | |
| # | |
| # gem install terminal-notifier | |
| # rbenv rehash | |
| # | |
| module Jekyll | |
| class Site |
| function setup() { | |
| colorMode(HSB, 260, 100, 100, 100); | |
| createCanvas(300, 300); | |
| var a = 150; | |
| var x = 10; | |
| while (a < 360) { | |
| fill(a, 75, 100); | |
| rect(x, 0, 15, height); | |
| a+=3; | |
| x +=15; |