Skip to content

Instantly share code, notes, and snippets.

View sophiabrandt's full-sized avatar

Sophia Brandt sophiabrandt

View GitHub Profile
@sophiabrandt
sophiabrandt / openpgp.md
Last active November 9, 2022 16:25
Keyoxide Proof

[Verifying my keyoxide cryptographic key: openpgp4fpr:4C38CC1AF264C3DE8D6D97283B31E6D41B517DA5]

foreground #323d43
background #fdf6e3
selection_foreground #e4e1cd
selection_background #d3dbc8
url_color #415c6d
cursor #7fbbb3
# black
color0 #4a555b
color8 #525c62
foreground #d8cacc
background #323d43
selection_foreground #3c474d
selection_background #525c62
url_color #415c6d
cursor #7fbbb3
# black
color0 #4a555b
color8 #525c62
/* this script marks each lecture as completed
paste into browser console (F12) */
var timer = window.setInterval(function() {
var videoCompleteButton = document.querySelector('.complete')
if (videoCompleteButton) {
videoCompleteButton.click()
} else {
window.clearInterval(timer)
}

Foobar

Foobar is a Python library for dealing with word pluralization.

Installation

Use the package manager pip to install foobar.

pip install foobar
# compile with `nim c -d:ssl readme_template_downloader.nim`
import httpclient, parseopt, os
proc downloadTemplate(link: string) =
var client = newHttpClient()
try:
var file = open("README.md", fmWrite)
defer: file.close()
file.write(client.getContent(link))
@sophiabrandt
sophiabrandt / truthy-falsy.md
Created February 18, 2019 13:30
Truthy and Falsy Values in JavaScript, Python and Clojure/ClojureScript
JavaScript Python 3 Clojure/ClojureScript
Falsy false False false
null None nil
NaN
undefined
0 (zero) 0
0.0 0.0
"" (empty string) "" (empty string)
[] (empty list)
@sophiabrandt
sophiabrandt / README.md
Created November 15, 2018 15:11 — forked from akashnimare/README.md
A Beginners Guide to writing a Kickass README ✍

Project title

A little info about your project and/ or overview that explains what the project is about.

Motivation

A short description of the motivation behind the creation and maintenance of the project. This should explain why the project exists.

Build status

Build status of continus integration i.e. travis, appveyor etc. Ex. -

Build Status

function convertToRoman(num) {
// create an ES6-map
const romanNumbers = new Map()
.set(1000, 'M')
.set(900, 'CM')
.set(500, 'D')
.set(400, 'CD')
.set(100, 'C')
.set(90, 'XC')
function sumAll(arr) {
var max = Math.max(arr[0], arr[1]);
var min = Math.min(arr[0], arr[1]);
var temp = 0;
for (var i=min; i <= max; i++){
temp += i;
}
return(temp);
}