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
function downloadFile() | |
{ | |
window.requestFileSystem( | |
LocalFileSystem.PERSISTENT, 0, | |
function onFileSystemSuccess(fileSystem) { | |
fileSystem.root.getFile( | |
"dummy.html", {create: true, exclusive: false}, | |
function gotFileEntry(fileEntry) { | |
var sPath = fileEntry.fullPath.replace("dummy.html",""); | |
var fileTransfer = new FileTransfer(); |
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 sqlalchemy import All_The_Bullshit_I_Need | |
class Type(Base): | |
id = Column(Integer, primary_key=True) | |
name = Column(String) | |
class Building(Base): | |
id = Column(Integer, primary_key=True) | |
to_id = Column(Integer, ForeignKey('types.id')) |
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
a |
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
server { | |
listen 80; | |
server_name example.org; | |
access_log /var/log/nginx/example.log; | |
location / { | |
proxy_pass http://127.0.0.1:8000; | |
proxy_set_header Host $host; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; |
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 sqlalchemy import create_engine, Column, Integer, String # , ForeignKey | |
from sqlalchemy.ext.declarative import declarative_base | |
from sqlalchemy.orm import sessionmaker # , relationship, backref | |
engine = create_engine('sqlite://:memory:') | |
Base = declarative_base() | |
# Table classes here | |
# example: |
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
mplayer tv:// -vo filefoo.wav | |
MPlayer SVN-r35920-4.7.2 (C) 2000-2013 MPlayer Team | |
203 audio & 421 video codecs | |
mplayer: could not connect to socket | |
mplayer: No such file or directory | |
Failed to open LIRC support. You will not be able to use your remote control. | |
Playing tv://. | |
TV file format detected. | |
Selected driver: v4l2 |
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
spouse = echtgenoot; echtgenote | |
offspring = kroost; kinderen | |
siblings = broers/zus | |
infant = klein kind { Onder de 7 jaar. } | |
youth = jongen; jongeman | |
elderly = bejaarden | |
ancestor = voorouder | |
posterity = nageslacht | |
hereditary = erfelijk | |
humanity = mensheid |
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
Zonsverduistering onstaat als de maan tussen de aarde en de zon komt te staan. Om er naar de kijken heb je oogbescherming nodig. In het westen gebruiken we sci-fi-achtige brillen, in Afrika en andere derdewereldlanden gebruiken ze beroet glas om daardoor heen naar de zon te kijken. Er zijn verschillende statussen zonsverduistering. Meestal vind er een hybride zonsverduistering plaats, dat houdt in dat de zon slechts gedeeltelijk verduisterd is. Heel soms vinden er wel 5 zonsverduisteringen per jaar plaats dit gebeurde in 1935, dit zal pas in 2206 weer gebeuren. |
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
if block.position[0] < self.pos[0] + width / 2 and | |
block.position[0] > self.pos[0] - width / 2 and | |
block.position[1] < self.pos[1] + height / 2 and | |
blocl.position[1] > self.pos[1] - height / 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
from time import sleep | |
def foo(): | |
print('foo') | |
def bas(): | |
sleep(1) | |
print('bas') | |
def start(): |