Skip to content

Instantly share code, notes, and snippets.

@gargakshit
gargakshit / Tempo.md
Created May 28, 2023 10:40
Tempo's privacy policy

Privacy Policy

This Privacy Policy describes Our policies and procedures on the collection, use and disclosure of Your information when You use the Service and tells You about Your privacy rights and how the law protects You.

Tempo does not collect any user data, and does not require internet to function.

Contact Us

Macro.to_string(
(fn x ->
quote do
unquote(x).(
quote do
quote do
(unquote_splicing(x))
end
end
)
console.log("Hello World");
name: Generate README every 1 hour
on:
schedule:
- cron: "0 * * * *"
workflow_dispatch:
jobs:
stuff:
runs-on: ubuntu-latest
require("isomorphic-unfetch");
const { promises: fs } = require("fs");
const path = require("path");
const clientId = process.env.SPOTIFY_CLIENT_ID;
const clientSecret = process.env.SPOTIFY_CLIENT_SECRET;
const refreshToken = process.env.SPOTIFY_REFRESH_TOKEN;
async function main() {
const readmeTemplate = (
require("dotenv").config();
require("isomorphic-unfetch");
const express = require("express");
const app = express();
const clientId = process.env.CLIENT_ID;
const clientSecret = process.env.CLIENT_SECRET;
const scopes = [
[
{
"name": "Journeys to Bagdad",
"provider": "Librivox",
"img": "https://upload.wikimedia.org/wikipedia/commons/5/5d/Matamoros004.JPG",
"audio": [
"https://res.cloudinary.com/paperplane-00/video/upload/v1577890027/paperplane/the_unpaprd/journeys_to_bagdad/journeystobagdad_01_brooks_64kb_b6cnox.mp3",
"https://res.cloudinary.com/paperplane-00/video/upload/v1577890030/paperplane/the_unpaprd/journeys_to_bagdad/journeystobagdad_02_brooks_64kb_xur45a.mp3",
"https://res.cloudinary.com/paperplane-00/video/upload/v1577890020/paperplane/the_unpaprd/journeys_to_bagdad/journeystobagdad_03_brooks_64kb_rkgv9k.mp3",
"https://res.cloudinary.com/paperplane-00/video/upload/v1577890025/paperplane/the_unpaprd/journeys_to_bagdad/journeystobagdad_04_brooks_64kb_uru8uw.mp3",
@gargakshit
gargakshit / state.js
Created June 11, 2019 10:15 — forked from dbisso/state.js
Simple state management in vanilla JS
function State() {
this.actions = {};
this.subscriptions = [];
this.history = [];
}
State.prototype.subscribe = function(element, action, callback) {
this.subscriptions[action] = this.subscriptions[action] || [];
this.subscriptions[action].push(function(data) {
callback.apply(element, data);