#How to create a .file
or .folder
on Windows
There are several ways
- Create
file.txt
- Rename to
.file.
, the last dot will be dropped, you'll have.file
Works the same with a file or a directory.
import shlex | |
import subprocess | |
import sys | |
def run_cmd(cmd, callback=None, watch=False): | |
"""Runs the given command and gathers the output. | |
If a callback is provided, then the output is sent to it, otherwise it | |
is just returned. |
CPP_FILES = $(wildcard *.markdown) | |
OBJ_FILES = $(patsubst %.markdown,%.pdf,$(CPP_FILES)) | |
%.pdf: %.markdown | |
pandoc -V geometry:margin=1in -S -o $@ $(patsubst %.pdf,%.markdown,$@) | |
all: $(OBJ_FILES) | |
clean: |
#!/usr/bin/env python3 | |
"""Simple HTTP Server With Upload. | |
This module builds on BaseHTTPServer by implementing the standard GET | |
and HEAD requests in a fairly straightforward manner. | |
see: https://gist.github.com/UniIsland/3346170 | |
""" | |
# Requires httr fork available here: | |
# https://github.com/ctrombley/httr | |
library(httr) | |
library(httpuv) | |
endpoint <- oauth_endpoint("get_request_token", "request_auth", "get_token", | |
base_url = "https://api.login.yahoo.com/oauth2") | |
app <- oauth_app("yahoo", |