Please see: https://github.com/kevinSuttle/html-meta-tags, thanks for the idea @dandv!
Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/
/** | |
* Get the ISO week date week number | |
* Matthijs: implementation is not correct! | |
* Added so you can grasp the idea | |
*/ | |
Date.prototype.getWeek = function () { | |
// Create a copy of this date object | |
var target = new Date(this.valueOf()); | |
// ISO week date weeks start on monday |
#!/usr/bin/env bash | |
# bash 3.2.25(1) Ubuntu 7.10 Date : 2012-02-15 | |
# | |
# _______________| freqy : sort and order lines by frequency of appearance. | |
# | |
# Usage: freqy [optional: file(s)] | |
# | |
# Notes: Will work in a pipe. | |
# Does not alter the file(s) themselves. | |
# |
[http] | |
proxy = http://localhost:3128 |
# Adapted from http://www.aishack.in/2010/07/transparent-image-overlays-in-opencv/ | |
from cv2 import * | |
src = cv.LoadImage("image.jpg") # Load a source image | |
overlay = cv.LoadImage("ghost.png") # Load an image to overlay | |
posx = 170 # Define a point (posx, posy) on the source | |
posy = 100 # image where the overlay will be placed | |
S = (0.5, 0.5, 0.5, 0.5) # Define blending coefficients S and D | |
D = (0.5, 0.5, 0.5, 0.5) |
# If you are using the MySQL 5.6 version of mysqldump on an older MySQL database, you might get the error message. | |
mysqldump: Couldn't execute 'SELECT @@GTID_MODE': Unknown system variable 'GTID_MODE' (1193) | |
# This error is in part due to the introduction of Global Transaction Identifiers (GTIDs) in MySQL 5.6. GTIDs make it simple to # track and compare replication across a master-slave topology. | |
# mysqldump tries to query this system variable, which doesn’t exist in earlier versions, and then fails. The solution is to add # –set-gtid-purged=OFF in the mysqldump command. It should look something like | |
mysqldump -h dbHost -u dbuser dbName --set-gtid-purged=OFF |
# Assuming an Ubuntu Docker image | |
$ docker run -it <image> /bin/bash |
var traverse = function(o, fn) { | |
for (var i in o) { | |
fn.apply(this,[i,o[i]]); | |
if (o[i] !== null && typeof(o[i])=="object") { | |
traverse(o[i], fn); | |
} | |
} | |
} | |
// usage |
$numJobs = DB::table('jobs')->where('queue', 'myqueue')->count(); |
// Run this in the F12 javascript console in chrome | |
// if a redirect happens, the page will pause | |
// this helps because chrome's network tab's | |
// "preserve log" seems to technically preserve the log | |
// but you can't actually LOOK at it... | |
// also the "replay xhr" feature does not work after reload | |
// even if you "preserve log". | |
window.addEventListener("beforeunload", function() { debugger; }, false) |