Skip to content

Instantly share code, notes, and snippets.

View ReticentIris's full-sized avatar
🍵
Sipping tea.

ReticentIris

🍵
Sipping tea.
View GitHub Profile
Song updatedSong = Song.builder()
.id(selectedSong.getId())
.name(songNameStringProperty.get())
.artist(songArtistStringProperty.get())
.album(songAlbumStringProperty.get())
.year(songYearStringProperty.get())
.build();
bleach==2.0.0
Brian2==2.0.1
brian2tools==0.2.1
cycler==0.10.0
decorator==4.0.11
dlib==19.4.0
entrypoints==0.2.2
html5lib==0.999999999
ipykernel==4.6.0
ipython==5.3.0
function _next(guild){
_ensureMongo();
return new Promise((resolve, reject) => {
mongo.collection(`guilds`).findAndModify(
{guildID: guild},
[[`_id`, `asc`]],
{
$pop: {
playlist: -1

Keybase proof

I hereby claim:

  • I am wildandrewlee on github.
  • I am reticence (https://keybase.io/reticence) on keybase.
  • I have a public key whose fingerprint is F962 A3A3 4DDE 5B9E 72D2 687C 426E B658 FAB3 4507

To claim this, I am signing this object:

defmodule Tree do
defstruct value, dependents: [], children %{}
end
defp get_dependents_tokens_continue?(nil, tokens) do:
[]
end
defp get_dependents_tokens_continue?((%Tree{value: value, dependents: dependents, children: children}, tokens) do:
get_dependents_tokens((%Tree{value: value, dependents: dependents, children: children}, tl(tokens))
#!/bin/sh
# Author: Andrew Lee <[email protected]>
#
# A shell script for deploying Meteor applications.
# Updates [email protected] to [email protected] to maintain compatibility
# with Node.js 4.4.7 (currently supported LTS). [email protected] is no
# longer supported as of September 2016 however Meteor continues to
# use it when building bundles.
#
<!DOCTYPE html>
<html>
<head>
<title>Hello, World!</title>
<link href="xxx.css" rel="stylesheet" />
<style>
body {
background: #dddddd /* light gray */
}
</style>
#!/bin/sh
export MYSQL_PWD=student
if [ "$#" -eq 2 ]; then
mysql -h $AWS1 -u student -A -t -e "use $1; $2";
elif [ "$#" -lt 2]; then
mysql -h $AWS1 -u student -A -t $1;
else
echo "Invalid number of arguments."
fi
# Modified from somewhere...
import string
import re
from pprint import pprint
from HTMLParser import HTMLParser
import os
import requests
class MLStripper(HTMLParser):
int get_bit_at(int x, int index){
return (x & (1 << index)) >> index
}
void int_to_ascii(int x, char* str){
int result = 0
for(int index = 0; index < 32; index++){
if(get_bit_at(x, index) == 1){
result |= 1 << x