CLICK ME
yes, even hidden code blocks!
print("hello world!")
""" | |
An example of using PyWin32 and the win32com library to interact | |
Microsoft Excel from Python. | |
This can be used instead of Visual Basic for Applications (VBA) | |
(c) Michael Papasimeon | |
""" | |
import win32com.client |
# IMPORTANT!: ALL SECTIONS ARE MANDATORY | |
[licenses] | |
# This indicates which are the only licenses that Licensebat will accept. | |
# The rest will be flagged as not allowed. | |
accepted = ["MIT", "MSC", "BSD"] | |
# This will indicate which licenses are not accepted. | |
# The rest will be accepted, except for the unknown licenses or dependencies without licenses. | |
# unaccepted = ["LGPL"] | |
# Note that only one of the previous options can be enabled at once. | |
# If both of them are informed, only accepted will be considered. |
# first: mkdir user && cd user && cp /path/to/get_gists.py . | |
# python3 get_gists.py user | |
import requests | |
import sys | |
from subprocess import call | |
user = sys.argv[1] | |
r = requests.get('https://api.github.com/users/{0}/gists'.format(user)) |
// For V8: | |
// Define global variable `__stack__` and `__line` | |
// for current stack and line | |
(function(global){ | |
Object.defineProperty(global, '__stack__', { | |
get: function(){ | |
var orig = Error.prepareStackTrace; | |
Error.prepareStackTrace = function(_, stack){ return stack; }; | |
var err = new Error; | |
Error.captureStackTrace(err, arguments.callee); |
출처: https://gist.github.com/epicserve/1219858
This guide on how to convert an SVN repository to a git repository was mostly taken from John Albin Wilkins post on Converting a Subversion repository to Git.
find . -name "*.ht*" | while read i; do pandoc -f html -t markdown "$i" -o "${i%.*}.md"; done |
REM This file converts all of the Markdown files to HTML. | |
REM Converting in the current directory | |
REM %%~ni returns just the filename of %%i, not its extension | |
for %%i in (*.markdown) do pandoc -f markdown -t html5 %%~ni.markdown > html/%%~ni.html | |
REM Converting a subdirectory - just slap it on front | |
for %%i in (report_pages/*.markdown) do pandoc -f markdown -t html5 report_pages/%%~ni.markdown > html/report_pages/%%~ni.html |
#!/bin/bash | |
# Converts HTML from https://exportmyposts.jazzychad.net/ exports to Markdown | |
POSTS_DIR=/Users/richard/Desktop/d6y/posts | |
for file in $POSTS_DIR/*.html | |
do | |
echo $file |
import java.io.FileInputStream; | |
import java.io.FileOutputStream; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.util.Iterator; | |
import org.apache.poi.hssf.usermodel.HSSFCell; | |
import org.apache.poi.hssf.usermodel.HSSFRow; | |
import org.apache.poi.hssf.usermodel.HSSFSheet; | |
import org.apache.poi.hssf.usermodel.HSSFWorkbook; |