[ Launch: anim test ] 195b23b8a71ca6206d5b by bjelline[ Launch: anim test ] 6479360 by enjalot
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
#!/usr/local/bin/python2.7 | |
import numpy as np | |
import pandas as pd | |
df_logfile = pd.DataFrame({ 'host' : ['this.com', 'this.com', 'this.com', 'that.com', 'other.net', 'other.net', 'other.net'], | |
'service' : ['mail', 'mail', 'web', 'mail', 'mail', 'web', 'web' ] }) | |
print "Input" | |
print df_logfile |
all the talks from 2015 are publicly available. but to learn about the rss feed that links to them
https://voicerepublic.com/users/re-publica-15.rss
you first have to sign up for voicerepublic.
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 selenium import webdriver | |
from selenium.webdriver.common.keys import Keys | |
from selenium.webdriver.common.by import By | |
from selenium.webdriver.support.ui import WebDriverWait | |
from selenium.webdriver.support import expected_conditions as EC | |
driver = webdriver.Chrome() | |
driver.get("http://localhost:5000/mood") | |
assert "Test App" in driver.title | |
el = driver.find_element_by_id('save') |
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
// functions for plain coordinate vectors: | |
// n-dimentional coordinate range from min to max | |
function min_max_coordinates( min_coords, max_coords ){ | |
let results = [ [] ]; | |
for(var i=0 ; i<min_coords.length; i++ ) { | |
let next_results = []; | |
results.forEach( left_end => { | |
for( let v=min_coords[i]; v<=max_coords[i]; v++ ){ | |
let new_array = left_end.slice(); // copy array |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Better Forms with HTML5 and CSS3</title> | |
<link rel="stylesheet" href="style.css"> | |
</head> | |
<body> | |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Responsive Web Design - originally from Wikipedia, the free encyclopedia</title> | |
<link href="style.css" rel="stylesheet" /> | |
<link href='http://fonts.googleapis.com/css?family=Ubuntu' rel='stylesheet' type='text/css'> | |
</head> | |
<body> |
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
# encoding: utf-8 | |
puts true ? "terärer operator funktioniert" : "ternärer operator funktioniert nicht" | |
# ohne klammern: | |
puts true || false ? "oder mit || funktioniert hier" : "oder mit || funktioniert hier nicht" | |
puts true && false ? "und mit && funktioniert hier nicht" : "und mit && funktioniert hier" | |
# mit klammern: |
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
this is how you load the data into a sqlite3 database. | |
$ cat tvshows-and-episodes.sql | sqlite3 db/development.sqlite3 | |
The database used here (db/development.sqlite3) is the | |
database normally used in development in a rails projects. |
OlderNewer