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
# coding: utf-8 | |
# In[1]: | |
lines = [item.strip() for item in open('letranger.txt').readlines()] | |
# In[2]: |
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 json | |
color_data = json.loads(open("xkcd.json").read()) | |
def hex_to_int(s): | |
s = s.lstrip("#") | |
return int(s[:2], 16), int(s[2:4], 16), int(s[4:6], 16) | |
import math | |
def distance(coord1, coord2): |
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
from collections import Counter | |
from collections import Counter | |
from markov import * | |
darwin_str = open("darwin.txt").read() | |
markmodel = markov_model(4, darwin_str) |
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
from collections import Counter | |
from collections import Counter | |
from markov import * | |
darwin_str = open("darwin.txt").read() | |
markmodel = markov_model(4, darwin_str) |
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
# coding: utf-8 | |
# In[102]: | |
get_ipython().system('pip install tracery') | |
# In[103]: |
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
#include <DmxSimple.h> | |
const int analogInPin = A0; //analog input pin for pressure sensor | |
// variables: | |
int sensorValue = 0; // the sensor value | |
int sensorMin = 1023; // minimum sensor value | |
int sensorMax = 0; // maximum sensor value | |
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
#include <DmxSimple.h> | |
const int analogInPin = A0; //analog input pin for pressure sensor | |
// variables: | |
int sensorValue = 0; // the sensor value | |
int sensorMin = 1023; // minimum sensor value | |
int sensorMax = 0; // maximum sensor value | |
//int sensorMin = 54; // minimum sensor value | |
//int sensorMax = 200; // maximum sensor value |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
<!-- load the jquery library. jquery is a javascript library that is essentially shorthand for js | |
when you see the $ in javascript, that means you're working with jquery --> | |
<script src="//code.jquery.com/jquery-1.11.2.min.js"></script> | |
<div style="background: #ffff00ff;">The page where it's <br /> always summer ☀️🌴🍹</div> | |
<html> | |
<br /><br /> | |
<style> | |
div { |
NewerOlder