brew install gource
ffmpeg -i in.mov -s 600x400 -pix_fmt rgb24 -r 10 -f gif - | gifsicle --optimize=3 --delay=3 > out.gif
This is a bash script, as an example, on how to do click-testing GUI based on finding components based on how they look.
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# translate utility that utilize google translator, support python2 & python3 | |
# Note that the order or arguments in the URL matters. | |
try: | |
from urllib import urlencode | |
except: | |
from urllib.parse import urlencode |
import dis | |
import types | |
def getFuncByName(fname): | |
possibles = globals().copy() | |
possibles.update(locals()) | |
f = possibles.get(fname) | |
if f: | |
return f | |
else: |
#!/usr/bin/env python | |
# Simple example of Wiener deconvolution in Python. | |
# We use a fixed SNR across all frequencies in this example. | |
# | |
# Written 2015 by Dan Stowell. Public domain. | |
import numpy as np | |
from numpy.fft import fft, ifft, ifftshift |
""" | |
A script to take all of the LineString information out of a very large KML file. It formats it into a CSV file so | |
that you can import the information into the NDB of Google App Engine using the Python standard library. I ran this | |
script locally to generate the CSV. It processed a ~70 MB KML down to a ~36 MB CSV in about 8 seconds. | |
The KML had coordinates ordered by | |
[Lon, Lat, Alt, ' ', Lon, Lat, Alt, ' ',...] (' ' is a space) | |
The script removes the altitude to put the coordinates in a single CSV row ordered by | |
[Lat,Lon,Lat,Lon,...] |
import os | |
import math | |
import time | |
import numpy | |
import pandas | |
import random | |
import matplotlib | |
import numpy.random as nrand | |
import matplotlib.pylab as plt | |
from sklearn.preprocessing import normalize |
def get_probability(self, d, y, x, n, c): | |
""" | |
This gets the probability of drop / pickup for any given Datum, d | |
:param d: the datum | |
:param x: the x location of the datum / ant carrying datum | |
:param y: the y location of the datum / ant carrying datum | |
:param n: the size of the neighbourhood function | |
:param c: constant for convergence control | |
:return: the probability of | |
""" |
using UnityEngine; | |
using System.Collections; | |
using UnityEditor; | |
using System.IO; | |
public class SDKSwap : EditorWindow { | |
static string _cardboardPath; | |
static string _OVRPath; |