This is inspired by A half-hour to learn Rust and Zig in 30 minutes.
Your first Go program as a classical "Hello World" is pretty simple:
First we create a workspace for our project:
""" | |
Based off Stripe's checkout repo, see the link for the Flask analogue. | |
https://github.com/stripe-samples/checkout-one-time-payments/blob/master/server/python/server.py | |
Assumes project is structured like: | |
src/ | |
backend/ | |
app.py |
This is inspired by A half-hour to learn Rust and Zig in 30 minutes.
Your first Go program as a classical "Hello World" is pretty simple:
First we create a workspace for our project:
Mute these words in your settings here: https://twitter.com/settings/muted_keywords | |
ActivityTweet | |
generic_activity_highlights | |
generic_activity_momentsbreaking | |
RankedOrganicTweet | |
suggest_activity | |
suggest_activity_feed | |
suggest_activity_highlights | |
suggest_activity_tweet |
// // https://twitter.com/settings/your_twitter_data/twitter_interests | |
// Lots of discussion and improvement of the original script in the comments | |
// Here's the best version that works well | |
// Because Twitter stops the script working after unchecking 50 interests, so you will almost certainly have to run the script multiple times | |
function sleep(milliseconds) { | |
return new Promise(function (resolve) { | |
return setTimeout(resolve, milliseconds); | |
}); |
Permalink: git.io/vps
Provider | Type | RAM | Cores | Storage | Transfer | Network | Price |
---|
/* | |
Parses the long_abstracts format: | |
<http://dbpedia.org/resource/Anarchism> <http://dbpedia.org/ontology/abstract> "Anarchism is a collection of movements and ideologies that ..."@en . | |
*/ | |
import org.openrdf.rio.* | |
import org.openrdf.rio.helpers.* | |
def parse(line, factory) { | |
def reader = new StringReader(line); |
import urllib | |
import datetime as dt | |
import pytz | |
from PIL import Image | |
import numpy as np | |
import subprocess | |
import socket | |
import os | |
dir = '/FULL/PATH/TO/SCRIPT/DIR' |
function u() { | |
requestAnimationFrame(u); | |
g = p ? | |
audio.currentTime * 60 : ( | |
audio = "RIFFdataWAVEfmt " + atob("EAAAAAEAAQAAeAAAAHgAAAEACAA") + "data", | |
b.style.background = "radial-gradient(circle,#345,#000)", | |
b.style.position = "fixed", | |
b.style.height = b.style.width = "100%", |
<!doctype html> | |
<html style="margin: 0; padding: 0; border: 0; width: 100%; height: 100%;"> | |
<head> | |
<meta charset="utf-8"> | |
</head> | |
<body style="margin: 0; padding: 0; border: 0; width: 100%; height: 100%;"> | |
<canvas style="display: block; width: WIDTHpx; height: HEIGHTpx;" width="WIDTH" height="HEIGHT"></canvas> | |
<script> | |
// shim... | |
var a = canvas; |