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
/* | |
Paul Kaplan, @ifitdidntwork | |
Create an ASCII STL file from a THREE.js mesh | |
that can be saved save from browser and 3D printed | |
-------------------------------------------------- | |
See further explanation here: | |
http://buildaweso.me/project/2013/2/25/converting-threejs-objects-to-stl-files | |
-------------------------------------------------- | |
Saving the file out of the browser is done using FileSaver.js |
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> | |
<head> | |
<title>Boogle</title> | |
<link href="style.css" rel="stylesheet"> | |
</head> | |
<body> | |
<div id="top-bar"> | |
<a href="http://gmail.com">Gmail</a> | |
<a href="http://google.com">Images</a> |
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
# the dna.txt file needs to be in the same folder | |
dna = open('dna.txt').read() | |
print 'The Profile of the DNA is:' | |
#Hair color | |
if 'CCAGCAATCGC' in dna: | |
hair_color = 'black' | |
elif 'GCCAGTGCCG' in dna: | |
hair_color = 'brown' |
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
print "This is a simple calculator" | |
# wir definieren unsere eigene "Funktion", | |
# die wiederholt ausgefuehrt werden kann. | |
# Vorteil: ich muss diesen Code nur einmal Schreiben und kann ihn zweimal ausfuehren | |
def get_number(): | |
# die funcktion fragt den Benutzer nach einer | |
# Zahl und liefert diese ans Programm zurueck. | |
# Den Code in der Funktion musst du nicht unbedingt ganz verstehen. | |
try: |
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
item_prices = {'milk': 2.30, 'bread': 1.10, 'water': 0.50} | |
item = raw_input('Choose an item:') | |
if item in item_prices: | |
print 'price:', item_prices[item] | |
else: | |
print 'item not available!' |
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
#!/bin/bash | |
# Heith Seewald 2012 | |
# Garoe Dorta 2015 | |
# Luca Weiss 2015 | |
# Also based on https://gist.github.com/MichaelLawton/ee27bf4a0f591bed19ac | |
# Feel free to extend/modify to meet your needs. | |
#### Lets run a few checks to make sure things work as expected. | |
#Make sure we’re running with root permissions. | |
if [ `whoami` != root ]; then |
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> | |
<head> | |
<meta charset="utf-8"> | |
<title>CSS Experimente</title> | |
<link rel="stylesheet" href="style.css"> | |
</head> | |
<body> | |
<div class="container"> | |
<h1 class="important"> |
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> | |
<head> | |
<meta charset="utf-8"> | |
<title>Hairdresser Hans</title> | |
<!-- Latest compiled and minified CSS --> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous"> | |
<!-- Optional theme --> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous"> |
OlderNewer