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
| { | |
| "tarot": [ | |
| { | |
| "reversed": "Negligence, absence, distribution, carelessness, apathy, nullity, vanity.", | |
| "interpretation": "Folly, mania, extravagance, intoxication, delirium, frenzy, bewrayment. ", | |
| "name": "The Fool", | |
| "description": "With light step, as if earth and its trammels had little power to restrain him, a young man in gorgeous vestments pauses at the brink of a precipice among the great heights of the world; he surveys the blue distance before him-its expanse of sky rather than the prospect below. His act of eager walking is still indicated, though he is stationary at the given moment; his dog is still bounding. The edge which opens on the depth has no terror; it is as if angels were waiting to uphold him, if it came about that he leaped from the height. His countenance is full of intelligence and expectant dream. He has a rose in one hand and in the other a costly wand, from which depends over his right shoulder a wallet curiously embroider |
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
| javascript:(function () { | |
| function getUrlVars() { | |
| var vars = {}; | |
| var parts = window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi, function (m, key, value) { | |
| vars[key] = value; | |
| }); | |
| return vars; | |
| } |
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
| -- I don't understand how totally this works but it does so | |
| CREATE AGGREGATE children_ids (anyelement) | |
| ( | |
| sfunc = array_append, | |
| stype = anyarray, | |
| initcond = '{}' | |
| ); | |
| -- then you can do |
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
| #!/usr/bin/python | |
| import os | |
| import sys | |
| import csv | |
| import datetime | |
| import time | |
| import twitter | |
| def test(): | |
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
| with days as ( | |
| select * | |
| from generate_series( | |
| (select min(created_at::date) from visits), | |
| (select max(created_at::date) from visits), | |
| '1 day' | |
| ) day | |
| ) | |
| select d.day, count(distinct v.ip) | |
| from days d |
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
| <?php | |
| namespace johnsnook\ipFilter\widgets; | |
| /** | |
| * @author John Snook | |
| * @date 2018-07-2 | |
| * @license https://github.com/johnsnook/yii2-ip-filter/LICENSE | |
| * @copyright 2018 John Snook Consulting | |
| */ |
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
| <?php | |
| namespace johnsnook\ipFilter\widgets; | |
| /** | |
| * @author John Snook | |
| * @date 2018-07-2 | |
| * @license https://github.com/johnsnook/yii2-ip-filter/LICENSE | |
| * @copyright 2018 John Snook Consulting | |
| */ |
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
| <style> | |
| .stack{ | |
| position: relative; | |
| /* left: 50px; | |
| right: 50px;*/ | |
| border: 5px beige outset; | |
| } | |
| .stackable{ | |
| position: absolute; | |
| } |
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
| /** | |
| * @Author: John Snook | |
| * Installation: | |
| * 1) In Chrome or Firefox, create a bookmark, (eg bookmark this page). | |
| * 2) Then, right click on the bookmark, and select "edit...". | |
| * 3) Change 'Name' field to "Upvote all" or "▲*" | |
| * 4) Copy and paste the code below into the "Url" field. (not the comments) | |
| * 5) Go to https://reddit.com/r/all, log in and click your new bookmark. | |
| */ | |
| javascript: (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
| /** | |
| * @Author: John Snook | |
| * Installation: | |
| * 1) In Chrome or Firefox, create a bookmark, (eg bookmark this page). | |
| * 2) Then, right click on the bookmark, and select "edit...". | |
| * 3) Change 'Name' field to "Downvote all" or "▼*" | |
| * 4) Copy and paste the code below into the "Url" field. (not the comments) | |
| * 5) Go to https://reddit.com/r/all, log in and click your new bookmark. | |
| */ | |
| javascript: (function() { |
NewerOlder