Save pserve.py to library/pserve.py
The library folder needs to be on the same level as your playbook.
#!/usr/bin/env python | |
import urllib | |
import urllib2 | |
import re | |
DDNS_HTTP_URL = 'http://dyn.value-domain.com/cgi-bin/dyn.fcg' | |
TARGET_BASE_PARAM = { | |
'd':'example.com', | |
'p':'password', |
// | |
// SDLUIKitDelegate+KivyAppDelegate.h | |
// | |
// Created by attakei on 2014/11/05. | |
// | |
// | |
// modify for your SDL header's path. | |
#import "../src/SDL/src/video/uikit/SDL_uikitappdelegate.h" |
73c73,74 | |
< | |
--- | |
> if address == 'localhost': | |
> address = '127.0.0.1' |
from ghost import Ghost | |
ghost = Ghost() | |
session = ghost.start() | |
session.set_viewport_size(1135, 740) | |
session.open('http://io-2012-slides.googlecode.com/git/template.html') | |
session.evaluate('for (var idx = slidedeck.curSlide_; idx > 0; idx--) { slidedeck.prevSlide();}') | |
session.sleep(1) |
It is tool to fetch gitignore contents from https://github.com/github/gitignore, merge fetched contents and generate local .gitignore file.
example)
$ curl https://gist.githubusercontent.com/attakei/98eb484cf013afd0d1ba/raw/f98b7ef8d87732363d2ccdb76ec9ef35151163d2/get_gitignore.py > get_gitignore
[Core] | |
Name = tododemo | |
Module = tododemo | |
[Python] | |
Version = 2+ | |
[Documentation] | |
Description = Todo Demo |
#!/usr/bin/env python | |
from http.server import HTTPServer, SimpleHTTPRequestHandler | |
import signal | |
import sys | |
import os | |
class OnceHttpServer(HTTPServer): | |
def shutdown_by_signal(self, sig_num, frame): | |
self.server_close() |
#include <iostream> | |
#include <iomanip> | |
#include <random> | |
#include <unistd.h> | |
using namespace std; | |
const int MAX_FLOOR = 14; | |
const int ELEVATOR_COUNT = 4; | |
const int RAISING_PROBABILITY = 10; |
import fire | |
class Calcurator(object): | |
def add(self, first, second): | |
return int(first) + int(second) | |
if __name__ == '__main__': | |
fire.Fire(Calcurator) |