Skip to content

Instantly share code, notes, and snippets.

@nengelmann
nengelmann / clx.go
Created April 26, 2024 20:29 — forked from Sh4yy/clx.go
Generate CLI commands for common tasks.
package main
import (
"context"
"errors"
"fmt"
"io"
"log"
"os"
"runtime"
@Eskimonian
Eskimonian / 4dx-changes.user.js
Last active April 26, 2024 20:29
CivicPlus - UserScripts
// ==UserScript==
// @name 4dx Changes
// @author GSHR
// @match *://www.4dxos.com/*
// @require http://code.jquery.com/jquery-3.3.1.min.js
// @downloadURL https://gist.github.com/TheEskimonian/3e94bb640294816719628c89b519a1ac/raw/4dx-changes.user.js
// @version 2.0
// @description 4dx Updates
// @run-at document-start
// ==/UserScript==
[
"928350122843193385",
"1185047194261274665",
"956202276408688650",
"956104664821157918",
"1185047092478095443",
"1185046791826178099",
"1185047045413797898",
"928483283698851901",
"1185047444619284641",
@amarnathsama
amarnathsama / BollywoodMovieDatabase.js
Last active April 26, 2024 20:29
Found this from somewhere on github, has a lot of south-indian movies, successively editing them out, will update here. original- https://github.com/FEND16/movie-json-data/blob/master/json/top-rated-indian-movies-02.json
export const stockData = [
{
title: "Baazigar",
year: "1993",
genres: ["Crime", "Drama", "Musical"],
ratings: [
4,
3,
5,
8,
@jiperez
jiperez / fc-inbound-new-hein-journals.js
Last active April 26, 2024 20:29
Mapping for new Hein Journals sources
exports.sourcesFCNewHeinJournals = {
"Advocates' Quarterly": "http://vlex.com/44823",
"American Taxpayers' Quarterly": "http://vlex.com/47297",
"Annales de l'Institut de Droit Compare de l''Universite de Paris": "http://vlex.com/44589",
"Architects' Law Reports and Review": "http://vlex.com/45643",
"Architects' Law Reports": "http://vlex.com/47440",
"Australian Law Librarians' Group Newsletter": "http://vlex.com/47404",
"Bell Yard: Journal of the Law Society's School of Law": "http://vlex.com/47023",
"Berkeley Women's Law Journal": "http://vlex.com/47512",
"Brainard's Legal Precedents in Land and Mining Cases": "http://vlex.com/44956",
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.jsbrasil = f()}})(function(){var define,module,exports;return (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.NAMES = exports.getAstro = exports.TIPOS_SANGUINEOS = exports.CEP_ESTADO
@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active April 26, 2024 20:29
Complete Recent Discord Quest

Complete Recent Discord Quest

How to use this script:

  1. Accept the quest under User Settings -> Gift Inventory
  2. Join a vc
  3. Stream any window (can be notepad or something)
  4. Press Ctrl+Shift+I to open DevTools
  5. Go to the Console tab
  6. Paste the following code and hit enter:
let wpRequire;
@alecordev
alecordev / gist:28bbca245865bb8aaf8b964ec72bcc72
Created March 19, 2017 15:13
Wordpress - Import uploaded files to media library
/*
* This function scans through all files in the wp-content/uploads
* folders and imports them into the media library. This should be
* included in your theme's functions.php file. Simply visit your
* website, including the URL param:
* http://www.example.org/?import_non_existing_media_library_entries=1
*
* Plan on it timing out a few times. Just keep refreshing. It won't
* duplicate files being imported.
*/
<!-- make a synchronous cross-domain request to The Echo Nest API -->
<!DOCTYPE html>
<html>
<head>
<title>Echo Nest API Cross-Domain Example</title>
</head>
<body>
<h1>Echo Nest API Cross-Domain Example</h1>
<p><strong>Results:</strong></p>
function Nest(api_key) {
this.api_key = api_key;
}
Nest.prototype = {
analyzeFile: function(file, type, options) {
var form = new FormData();
form.append('api_key', this.api_key);
form.append('track', file);
form.append('filetype', type);