Skip to content

Instantly share code, notes, and snippets.

View melaniehoff's full-sized avatar
💭
organizing https://sfpc.io/code-societies

Melanie Hoff melaniehoff

💭
organizing https://sfpc.io/code-societies
View GitHub Profile
var request = require('request');
var cheerio = require('cheerio');
var base_url = 'https://yandex.ru/images/search?rpt=imageview&img_url=';
var re = /img_url=(.*?)&rpt=/;
var url = 'http://107.170.164.22:3000/chino1448317021600.jpg';
get_similar(url, finished);
@melaniehoff
melaniehoff / icm-week3-mel-soy
Last active June 29, 2016 11:42
WATCH HIM WATCH HIM WATCH ME
var Mx = 940;
var My = 80;
var d = 50;
var x = 0;
var y = 0;
//Melanie's variables
var playing = false;
var staticTv;
imageData = canv.elt.toDataURL();
var blobBin = atob(imageData.split(',')[1]);
var array = [];
for (var i = 0; i < blobBin.length; i++) {
array.push(blobBin.charCodeAt(i));
}
var imageFile = new Blob([new Uint8Array(array)], {
type: 'image/png'
@melaniehoff
melaniehoff / CENTERED_index.html
Last active May 4, 2018 01:30
D3A - embed p5.js sketch centered on a page.
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8"/>
<script>
// JAVASCRIPT COULD GO HERE
</script>
<style type="text/css">
body {
@melaniehoff
melaniehoff / random_folder.py
Last active June 9, 2019 00:09
A *truly* Random Folder
import glob
import random
import shutil
import os
import pickle
## Make an empty folder called Random and put it on your desktop
## Make an empty file called all_my_files.txt and put it in the same dir as random_folder.py
## Replace my file paths with yours

📞 🌿 Detroit Students' Peer-to-Peer address book on the distributed web

Folder Poetry Prompt: 🏡 A Village You Want to Live In

  • Write about the village you would like to imagine living in. This can take the form of a paragraph, a mind map, or a list. Bring your writing to class to share with each other tommorrow.
  • your description does not have to be realistic or even physically probable. What would your ideal living environment look like? What is your utopia?
  • What is your village called?
  • Consider how you would like to share space with others in your environment.
  • In your village, how do you communicate and care for each other? How are people held?
#!/bin/bash -
#title :incantation.sh
#description :This script will sequentially print a directory.
#author :Matthew Ragan & Zoe Sandoval
#date :20200702
#==============================================================================
# Bash File to Sequence Printing Files
# For 'each' file ending .txt that is found in the directory
#!/bin/bash -
#title :treepoem.sh
#description :This script will sequentially print a directory, along with the file name and directory name.
#author :Matthew Ragan & Zoe Sandoval
#date :20200702
#==============================================================================
treeFunction(){
The erotic is a measure between the beginnings of our sense of self and the chaos of our strongest feelings. It is an internal sense of satisfaction to which, once we have experienced it, we know we can aspire. For having experienced the fullness of this depth of feeling and recognizing its power, in honor and self-respect we can require no less of ourselves. It is never easy to demand the most from ourselves, from our lives, from our work. To encourage excellence is to go beyond the encouraged mediocrity of our society is to encourage excellence. But giving in to the fear of feeling and working to capacity is a luxury only the unintentional can afford, and the unintentional are those who do not wish to guide their own destinies.
This internal requirement toward excellence which we learn from the erotic must not be misconstrued as demanding the impossible from ourselves nor from others. Such a demand incapacitates everyone in the process.
For the erotic is not a question only of what we do; it is a question
@melaniehoff
melaniehoff / .bash_profile
Last active October 10, 2020 23:52
My color-coded, crafted, .bash_profile <3
# to remove the title bar around iterm2, download this beta version https://www.iterm2.com/version3.html
# preferences -> appearance -> window -> uncheck: show border around window
# use this alias to switch to conda python3
alias condapy='export PATH="/anaconda/bin:$PATH"'
# Homebrew
export PATH=/usr/local/bin:$PATH
# installed gny coreutils in order to get colors