The popular open-source contract for web professionals by Stuff & Nonsense
- Originally published: 23rd December 2008
- Revised date: March 15th 2016
- Original post
Banana, Dark Chocolate, & 5AM Saint Cake | |
See https://twitter.com/colinbm/status/110026973681684480 | |
100 g wholemeal flour | |
130 g self raising flour | |
200 g sugar | |
1/2 tsp salt | |
1/2 tsp cinnamon | |
1/2 tsp baking powder |
# /───────────────────────── min (0 - 59) | |
# │ /──────────────────── hour (0 - 23) | |
# │ │ /─────────────── day of month (1 - 31) | |
# │ │ │ /────────── month (1 - 12) | |
# │ │ │ │ /───── day of week (0 - 7) (Sunday=0 or 7) | |
# │ │ │ │ │ | |
# * * * * * command to be executed |
For A3: | |
wkhtmltopdf --page-width 297 --page-height 420 --dpi 300 --margin-right 0 --margin-top 0 --margin-bottom 0 --margin-left 0 http://wktest.local ~/Desktop/wktest.pdf | |
body { | |
margin: 0; | |
padding: 0; | |
background: #ccc; | |
height: 420mm; | |
width: 297mm; |
<?php | |
class WpGet { | |
public static function __callStatic($name, $args) { | |
if (function_exists($name)) { | |
ob_start(); | |
$name($args); | |
$result = ob_get_contents(); | |
ob_end_clean(); | |
return $result; |
require 'exifr' | |
files = Dir['**/*'] | |
files.each do |file| | |
if File.file?(file) && File.extname(file).downcase == '.jpg' | |
begin | |
exif = EXIFR::JPEG.new(file) | |
if !exif.date_time_original.nil? | |
File.utime(exif.date_time_original, exif.date_time_original, file) |
#! /usr/bin/env ruby | |
require 'pathname' | |
require 'etc' | |
require 'shellwords' | |
path = ARGV.first | |
user = ENV['SUDO_USER'] | |
SAFE_PATH_PREFIX = "/home/#{user}/" |
#!/usr/bin/env ruby | |
require 'cloudflare' | |
module CloudFlare | |
class Connection | |
public :send_req | |
end | |
end |
{ | |
"england-and-wales": { | |
"division": "england-and-wales", | |
"events": [ | |
{ | |
"title": "Fake bank holiday", | |
"date": "2023-04-21", | |
"notes": "", | |
"bunting": true | |
} |