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
{-# LANGUAGE TypeFamilies, QuasiQuotes, MultiParamTypeClasses, | |
TemplateHaskell, OverloadedStrings #-} | |
import Yesod | |
import Yesod.Auth | |
import Yesod.Auth.OAuth | |
import Data.Text.Internal | |
data HelloWorld = HelloWorld |
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
require.paths.push("/usr/local/lib/node_modules") | |
express = require "express" | |
app = express.createServer() | |
hamljs = require "hamljs" | |
coffee = require "coffee-script" | |
io = require("socket.io").listen(app) | |
io.configure () -> | |
io.set "transports",["xhr-polling"] | |
io.set "polling duration",10 |
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
@rand = (x,y) -> | |
Math.floor Math.random() * x + y | |
log = () -> | |
console.log arguments | |
target = $("<div></div>").text arguments[0][0] | |
target.css "display":"None","position":"absolute","top":arguments[0][2],"left":arguments[0][1],"font-size":arguments[0][3] | |
$("body").append target | |
target.append('<embed src="' + arguments[0][4] + '" autostart="true" hidden="true" loop="false">') | |
target.fadeIn(1500).fadeOut 1500,() -> |
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 -*- | |
##use Module | |
import ply.lex as lex | |
import ply.yacc as yacc | |
#Use Token | |
tokens = ( | |
'STRING' | |
,'P_Start' | |
,'P_End' |
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 -*- | |
import threading | |
import time | |
import pyaudio | |
import math | |
import array | |
import random | |
class System(threading.Thread): | |
def __init__(self,channels,pine = 3.14): |
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 -*- | |
from PyQt4.QtCore import * | |
from PyQt4.QtGui import * | |
from PyQt4.QtWebKit import * | |
import sys | |
import os | |
import shpaml | |
import BeautifulSoup | |
import mechanize |
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 -*- | |
import pygame | |
from pygame.locals import * | |
import pygame.mixer | |
import sys | |
import copy | |
import array | |
sounds = [0 for j in range(0,20)] | |
cell = [[0 for j in range(0,20)] for i in range(0,20)] |
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 -*- | |
import os | |
import urllib2 | |
import BeautifulSoup | |
import re | |
import zipfile | |
class Epub_maker(object): | |
def __init__(self,filename,title,author,identi,workspace='./temp/',): | |
""" | |
Initialize :: Create Directory and File.Epub needs there. |
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 imaplib | |
import pygame | |
def cd_eject(): | |
pygame.cdrom.init() | |
cd = pygame.cdrom.CD(0) | |
cd.init() | |
cd.eject() | |
def mail_check(user,passw): |
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
$ -> | |
@flash_start = null | |
pages = { | |
text: [], | |
counter: 0, | |
} | |
pages.next = () -> | |
if pages.text.length > @counter | |
@counter = @counter + 1 |