This file contains hidden or 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
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"/> | |
<script> | |
// JAVASCRIPT COULD GO HERE | |
</script> | |
<style type="text/css"> | |
body { |
This file contains hidden or 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 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 |
This file contains hidden or 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
# 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 |
This file contains hidden or 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
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' |
This file contains hidden or 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
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); |
This file contains hidden or 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
var Mx = 940; | |
var My = 80; | |
var d = 50; | |
var x = 0; | |
var y = 0; | |
//Melanie's variables | |
var playing = false; | |
var staticTv; |
NewerOlder