Skip to content

Instantly share code, notes, and snippets.

View nelsonpecora's full-sized avatar

Nelson Pecora nelsonpecora

View GitHub Profile
@jtomchak
jtomchak / upload
Created March 22, 2022 15:35
Upload JSON file to micro.blog
"use strict";
const querystring = require("querystring");
const axios = require("axios");
let jsonData = require("./strapiOutput.json");
async function upload() {
const articles = jsonData.map((category) => {
category.articles.map((article) => {
console.log(article.title);
axios.post(
@vilhalmer
vilhalmer / gist:3052f7e9e7f34b92a40f
Created November 1, 2014 01:28
NSVisualEffectView undocumentation
NSVisualEffectMaterial constants, and the undocumented materials they coorespond to in various modes:
+----------------------+-------+----------+------+---------+
| MATERIAL # | LIGHT | LIGHT EM | DARK | DARK EM |
+----------------------+-------+----------+------+---------+
| | | | | |
| 0 - Appearance Based | 3 | 3 | 5 | 5 |
| | | | | |
| 1 - Light | 3 | 3 | 3 | 3 |
| | | | | |
| 2 - Dark | 4 | 4 | 4 | 4 |

To ignore whitespace when diffing in GitHub, simply append ?w=1 to the URL. e.g., compare this page and this page.