This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.
To capture the video (filesize: 19MB), using the free "QuickTime Player" application:
/** | |
* Copyright 2012 Akseli Palén. | |
* Created 2012-07-15. | |
* Licensed under the MIT license. | |
* | |
* <license> | |
* Permission is hereby granted, free of charge, to any person obtaining | |
* a copy of this software and associated documentation files | |
* (the "Software"), to deal in the Software without restriction, | |
* including without limitation the rights to use, copy, modify, merge, |
#!/bin/bash | |
# | |
# description: Apache Tomcat init script | |
# processname: tomcat | |
# chkconfig: 234 20 80 | |
# | |
# | |
# Copyright (C) 2014 Miglen Evlogiev | |
# | |
# This program is free software: you can redistribute it and/or modify it under |
// Put your file to "YOUR_UNITY_PROJ/Assets/StreamingAssets" | |
// example: "YOUR_UNITY_PROJ/Assets/StreamingAssets/db.bytes" | |
string dbPath = ""; | |
if (Application.platform == RuntimePlatform.Android) | |
{ | |
// Android | |
string oriPath = System.IO.Path.Combine(Application.streamingAssetsPath, "db.bytes"); | |
#!/usr/bin/env bash | |
# obtains all data tables from database | |
TS=`sqlite3 $1 "SELECT tbl_name FROM sqlite_master WHERE type='table' and tbl_name not like 'sqlite_%';"` | |
# exports each table to csv | |
for T in $TS; do | |
sqlite3 $1 <<! | |
.headers on |
# script to delete unnecessary apple apps | |
rm -Rvf /Applications/FaceTime.app | |
rm -Rvf /Applications/Game\ Center.app | |
rm -Rvf /Applications/Chess.app | |
rm -Rvf /Applications/Dashboard.app | |
rm -Rvf /Applications/iBooks.app | |
rm -Rvf /Applications/Messages.app | |
rm -Rvf /Applications/Photos.app | |
rm -Rvf /Applications/DVD\ Player.app |
Set = ['A', 'B', 'C', 'D'] | |
Subsets = [] | |
n = len(Set) | |
for i in xrange(pow(2, n)): | |
binaryDigits = (bin(i)[2:]).zfill(n) | |
subset = '' | |
j = 0 | |
for digit in binaryDigits: | |
if(digit == '1'): |
I like to learn, index and retrieve information a lot. I know a lot of others do as well. We share data but I don't think we share our information and rarely our ontologies (a.k.a. our mental models). If we shared our ontologies, I think we could learn more from each other. With this hope in mind, I'm looking for a tool that provides these features:
Since I have not found such a tool, I have built a tool that:
// 3D Dom viewer, copy-paste this into your console to visualise the DOM as a stack of solid blocks. | |
// You can also minify and save it as a bookmarklet (https://www.freecodecamp.org/news/what-are-bookmarklets/) | |
(() => { | |
const SHOW_SIDES = false; // color sides of DOM nodes? | |
const COLOR_SURFACE = true; // color tops of DOM nodes? | |
const COLOR_RANDOM = false; // randomise color? | |
const COLOR_HUE = 190; // hue in HSL (https://hslpicker.com) | |
const MAX_ROTATION = 180; // set to 360 to rotate all the way round | |
const THICKNESS = 20; // thickness of layers | |
const DISTANCE = 10000; // ¯\\_(ツ)_/¯ |