This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import spotipy | |
from spotipy.oauth2 import SpotifyOAuth | |
# INSTRUCTIONS: | |
# Go to https://developer.spotify.com/dashboard, create an app, | |
# and paste the Client ID and Client Secret below. | |
# Also make sure to add a random localhost callback URL to 'redirect URLs' in the dashboard, e.g., "http://localhost:8888/callback" as used below. | |
sp = spotipy.Spotify( | |
auth_manager=SpotifyOAuth( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"context":{"allowJs":false,"logLevel":20,"namespace":"jest-preset","package":"ts-jest","version":"28.0.2"},"message":"creating jest presets not handling JavaScript files","sequence":1,"time":"2022-05-11T08:33:01.791Z"} | |
{"context":{"allowJs":false,"logLevel":20,"namespace":"jest-preset","package":"ts-jest","version":"28.0.2"},"message":"creating jest presets not handling JavaScript files","sequence":2,"time":"2022-05-11T08:33:01.800Z"} | |
{"context":{"logLevel":20,"namespace":"Importer","package":"ts-jest","version":"28.0.2"},"message":"creating Importer singleton","sequence":3,"time":"2022-05-11T08:33:02.205Z"} | |
{"context":{"actualVersion":"28.1.0","expectedVersion":">=28.0.0 <29","logLevel":20,"namespace":"versions","package":"ts-jest","version":"28.0.2"},"message":"checking version of jest: OK","sequence":4,"time":"2022-05-11T08:33:02.220Z"} | |
{"context":{"logLevel":20,"namespace":"ts-jest-transformer","package":"ts-jest","version":"28.0.2"},"message":"created new transformer","sequence":5,"time":"2022-05-11T08: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set tabstop=4 | |
" Search options | |
set ignorecase | |
set smartcase | |
" Get around faster | |
nnoremap - :w<cr> | |
nnoremap s l | |
nnoremap l $ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# If you come from bash you might have to change your $PATH. | |
# export PATH=$HOME/bin:/usr/local/bin:$PATH | |
# Path to your oh-my-zsh installation. | |
export ZSH="$HOME/.oh-my-zsh" | |
# Set name of the theme to load --- if set to "random", it will | |
# load a random theme each time oh-my-zsh is loaded, in which case, | |
# to know which specific one was loaded, run: echo $RANDOM_THEME | |
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as React from 'react'; | |
type InputType = 'text' | 'tel' | 'email' | 'password' | 'number'; | |
type Input = 'textarea' | 'button' | InputType; | |
const button = () => <button />; | |
const textarea = () => <textarea />; | |
const other = (type: InputType) => React.createElement('input', { type }); | |
const matchInput = (inputString: Input) => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias gs="git status" | |
alias ga="git add -A" | |
alias gc="git commit" | |
alias gl="git log" | |
alias gd="git diff" | |
alias gr="git reset" | |
alias gb="git --no-pager branch" | |
alias gch="git checkout" | |
function git_finalize() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
"env": { | |
"browser": true, | |
"es6": true, | |
"jest": true | |
}, | |
"extends": [ | |
"eslint:recommended", | |
"plugin:react/recommended" | |
], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Windows; | |
using System.IO; | |
using System.Text.RegularExpressions; | |
using Microsoft.Win32; | |
namespace HTMLEncoder | |
{ | |
/// <summary> | |
/// Interaction logic for MainWindow.xaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
alert('testing') | |
window.mcdStoreLocator = {}; | |
// Simple JavaScript Templating | |
// John Resig - http://ejohn.org/ - MIT Licensed | |
(function(){ | |
var cache = {}; | |
mcdStoreLocator.createMicroTemplate = function createMicroTemplate(label, element) { | |
if (cache[label]) return cache[label]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Script that finds submissions in earthporn.reddit.com with more than 1000 points and prints them. | |
# Used for a personal project. | |
import time | |
import praw | |
# Connecting to Reddit and setting user agent | |
r = praw.Reddit('r/earthporn monitor by u/niek_pas') | |
# Getting subreddit and storing in variable 'subreddit' | |
subreddit = r.get_subreddit('earthporn') | |
# Declaring list of already added submissions to ensure no duplicates |