Skip to content

Instantly share code, notes, and snippets.

@soc201
soc201 / airtable.js
Created February 10, 2021 22:39 — forked from gtalarico/airtable.js
Airtable Netlify Lambda Function Setup
// lambda/airtable.js
const Airtable = require('airtable')
Airtable.configure({
endpointUrl: 'https://api.airtable.com',
apiKey: process.env.AIRTABLE_KEY
})
const base = Airtable.base('appNtnZ99fkL1cByn')
exports.handler = function(event, context, callback) {
@soc201
soc201 / vaccination-stats.js
Created February 5, 2021 23:26 — forked from marco79cgn/vaccination-stats.js
A Scriptable widget that shows the amount of people who have received the corona vaccination in Germany
// Mit Caching und Fallback
const cacheMinutes = 60; // 60 min
const today = new Date();
const neededTotalVaccinations = 116400000;
let result;
let resultDe;
let width = 100;
const h = 5;
let widget = new ListWidget();
@soc201
soc201 / woocommerce-sales
Created December 5, 2020 15:18 — forked from olikdesign/woocommerce-sales
Woocommerce Sales Widget (Current month and Year) - iOS, Scriptable
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: yellow; icon-glyph: stats;
/**
* Display Woocommerce Sales for current month
* Widget made by Oliver Kehl - www.olikdesign.de
*
* WIDGET CONFIGURATION
*/
@soc201
soc201 / Coronavirus.js
Created December 5, 2020 15:14 — forked from planecore/Coronavirus.js
Coronavirus Scriptable Widget
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: deep-green; icon-glyph: user-md;
// change "country" to a value from https://coronavirus-19-api.herokuapp.com/countries/
const country = "Israel"
const url = `https://coronavirus-19-api.herokuapp.com/countries/${country}`
const req = new Request(url)
const res = await req.loadJSON()
if (config.runsInWidget) {
@soc201
soc201 / New from Gist.py
Created July 14, 2020 16:14 — forked from philgruneich/New from Gist.py
Adds Python gists to Pythonista.
# coding: utf-8
# This script downloads and opens a Gist from a URL in the clipboard.
# It's meant to be put in the editor's actions menu.
#
# It works with "raw" and "web" gist URLs, but not with gists that
# contain multiple files or non-Python files.
#
# If a file already exists, a dialog is shown that asks whether the
# new file should be renamed or replaced.
#coding: utf-8
import console
import keychain
import pickle
login = keychain.get_password('pinboard.in','pythonista')
if login is not None:
user, pw = pickle.loads(login)
else:
@soc201
soc201 / URL Parsing
Created June 26, 2020 17:10 — forked from joshisa/URL Parsing
Parsing of URLs using bash sh scripting
#!/bin/bash
# Referenced and tweaked from http://stackoverflow.com/questions/6174220/parse-url-in-shell-script#6174447
proto="$(echo $1 | grep :// | sed -e's,^\(.*://\).*,\1,g')"
# remove the protocol
url="$(echo ${1/$proto/})"
# extract the user (if any)
userpass="$(echo $url | grep @ | cut -d@ -f1)"
pass="$(echo $userpass | grep : | cut -d: -f2)"
if [ -n "$pass" ]; then
@soc201
soc201 / URL Parsing
Created June 26, 2020 17:10 — forked from joshisa/URL Parsing
Parsing of URLs using bash sh scripting
#!/bin/bash
# Referenced and tweaked from http://stackoverflow.com/questions/6174220/parse-url-in-shell-script#6174447
proto="$(echo $1 | grep :// | sed -e's,^\(.*://\).*,\1,g')"
# remove the protocol
url="$(echo ${1/$proto/})"
# extract the user (if any)
userpass="$(echo $url | grep @ | cut -d@ -f1)"
pass="$(echo $userpass | grep : | cut -d: -f2)"
if [ -n "$pass" ]; then
@soc201
soc201 / On2Air: Default Values Script
Created March 4, 2020 20:20 — forked from on2air/On2Air: Default Values Script
Script for setting default values in Airtable
/*****
* Title: Manage & Run Default Values
* License: MIT
* Author: Openside (Team behind On2Air products and BuiltOnAir community)
* Sites:
* https://openside.com - Openside Consulting Services
* https://openside.com/#products - On2Air Products
* https://builtonair.com - All things Airtable Community
*
* Reach out for all your Airtable needs

##Anti-Adblock Killer | Reek Anti-Adblock Killer

⚠ IMPORTANT ⚠

THIS IS NOT A UNIVERSAL SOLUTION FOR ALL ANTI ADBLOCK SCRIPTS BEFORE REPORTING ANYTHING PLEASE READ THIS