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:
Now located at https://github.com/JeffPaine/beautiful_idiomatic_python.
Github gists don't support Pull Requests or any notifications, which made it impossible for me to maintain this (surprisingly popular) gist with fixes, respond to comments and so on. In the interest of maintaining the quality of this resource for others, I've moved it to a proper repo. Cheers!
# to generate your dhparam.pem file, run in the terminal | |
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
When hosting our web applications, we often have one public IP
address (i.e., an IP address visible to the outside world)
using which we want to host multiple web apps. For example, one
may wants to host three different web apps respectively for
example1.com
, example2.com
, and example1.com/images
on
the same machine using a single IP address.
How can we do that? Well, the good news is Internet browsers
using System.Collections.Generic; | |
using System.Text; | |
namespace UnityEngine.EventSystems | |
{ | |
public abstract class PointerInputModule : BaseInputModule | |
{ | |
public const int kMouseId = -1; | |
public const int kFakeTouchesId = -2; |
var React = require('react'); | |
var Dropzone = require('react-dropzone'); | |
var axios = require('axios'); | |
exports = module.exports = React.createClass({ | |
_onDrop: function (files) { | |
var file = files[0]; | |
axios.get(ENDPOINT_TO_GET_SIGNED_URL, { | |
filename: file.name, |
using UnityEngine; | |
using System.Collections; | |
public class ViveCursor : MonoBehaviour { | |
public enum AxisType | |
{ | |
XAxis, | |
ZAxis | |
} |
#if UNITY_STANDALONE && !STEAM_BUILD | |
[MenuItem("Build/Switch to Steam")] | |
#endif | |
public static void SwitchToSteam() { | |
string defines = PlayerSettings.GetScriptingDefineSymbolsForGroup(BuildTargetGroup.Standalone); | |
defines = AddCompilerDefines(defines, "STEAM_BUILD"); | |
defines = RemoveCompilerDefines(defines, "GOG_BUILD"); | |
UnityEngine.Debug.Log("Compiling with DEFINE: '" + defines + "'"); | |
PlayerSettings.SetScriptingDefineSymbolsForGroup(BuildTargetGroup.Standalone, defines); |