posts | seconds | time |
---|---|---|
1 | 0.824 | 0:0.824 |
100 | 2.644 | 0:2.644 |
1000 | 25.071 | 0:25.071 |
5000 | 186.715 | 3:6.715 |
10000 | 536.904 | 8:56.904 |
View holidayCheck.js
This file contains 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
/* | |
* | |
* Source: https://www.state.nj.us/nj/about/facts/holidays/ | |
* Convert to JSON using ChatGPT prompt: | |
* "Convert this table to JSON, converting dates to ISO format (pasted table)" | |
* | |
*/ | |
const HOLIDAYS = [ | |
{ | |
holiday: "New Year's Day", |
View redirect-with-preserved-paths.js
This file contains 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
var oldDomain = "businessnj.webflow.io"; | |
var newDomain = "business.nj.gov"; | |
if (location.hostname === oldDomain) { | |
location.replace("https://" + newDomain + location.pathname + location.search); | |
} |
View domains.js
This file contains 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
var _ = require('underscore'); | |
var async = require('async'); | |
var request = require('request'); | |
var domains = [ | |
// Federal non-.gov domains | |
{ | |
url: 'http://govt-urls.usa.gov/tematres/vocab/services.php?output=json&task=fetchDown&arg=17', | |
json: true, | |
}, |
View _config.yml
This file contains 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
defaults: | |
- | |
scope: | |
path: "" | |
values: | |
layout: "page" | |
- | |
scope: | |
path: "news" | |
values: |
View index.html
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Foo</title> | |
<meta charset='utf-8' /> | |
<meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0' /> | |
<style type='text/css'> | |
body { | |
font-family: 'Helvetica'; | |
letter-spacing:-5px; |
View jekyll_get.rb
This file contains 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
require 'open-uri' | |
module Jekyll_Get | |
class Generator < Jekyll::Generator | |
def generate(site) | |
config = site.config['jekyll_get'] | |
if !config | |
return | |
end | |
if !config.kind_of?(Array) |
View gist:e62d831e009b827fca07
This file contains 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
find . -type f | sed 's/^.*\(\.[a-zA-Z0-9][a-zA-Z0-9][a-zA-Z0-9]\).*$/\1/' | sort | uniq -c > ../files.dat |
View profile.md
View index.html
This file contains 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
<!doctype html> | |
<html> | |
<head> | |
<title></title> | |
<meta charset="utf-8"> | |
<script src="http://code.jquery.com/jquery-1.10.1.min.js"></script> | |
<script src="liquid.js"></script> | |
</head> | |
<body> | |
<div id="content"></div> |
View jsonp.xml
This file contains 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
<assign:extract-value> | |
<variable-name>CALLBACK</variable-name> | |
<location>Query_String</location> | |
<location-id>callback</location-id> | |
<location-id-prefix-match>off</location-id-prefix-match> | |
<separator>=</separator> | |
<add-prefix>none</add-prefix> | |
<add-suffix>none</add-suffix> | |
</assign:extract-value> | |
NewerOlder