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:
| #include <iostream> | |
| #include <iomanip> | |
| #include <random> | |
| #include <unistd.h> | |
| using namespace std; | |
| const int MAX_FLOOR = 14; | |
| const int ELEVATOR_COUNT = 4; | |
| const int RAISING_PROBABILITY = 10; |
| // knockout 3.4.0 | |
| ko.utils.addOrRemoveItem = function (array, value, included) { /* .. */ } | |
| ko.utils.anyDomNodeIsAttachedToDocument = function (nodes) { /* .. */ } | |
| ko.utils.arrayFilter = function (array, predicate) { /* .. */ } | |
| ko.utils.arrayFirst = function (array, predicate, predicateOwner) { /* .. */ } |
| ;;; php-doc.el --- doc block generator/extractor for php | |
| ;; Copyright (C) 2010, 2013 Stefan Siegl <[email protected]> | |
| ;; Maintainer: Stefan Siegl <[email protected]> | |
| ;; Author: Stefan Siegl <[email protected]> | |
| ;; Keywords: php docblock | |
| ;; Created: 2010 | |
| ;; Modified: 2013-09-14 | |
| ;; X-URL: https://gist.github.com/stesie |
| using UnityEngine; | |
| using System.Collections; | |
| public class MapUtils { | |
| static float GOOGLEOFFSET = 268435456f; | |
| static float GOOGLEOFFSET_RADIUS = 85445659.44705395f;//GOOGLEOFFSET / Mathf.PI; | |
| static float MATHPI_180 = Mathf.PI/180f; | |
| static private float preLonToX1 = GOOGLEOFFSET_RADIUS * (Mathf.PI/180f); |
Microsoft partnered with Canonical to create Bash on Ubuntu on Windows, running through a technology called the Windows Subsystem for Linux. Below are instructions on how to set up the ssh server to run automatically at boot.
sudo apt remove openssh-serversudo apt install openssh-server/etc/ssh/sshd_config file by running the command sudo vi /etc/ssh/sshd_config and do the following
Port to 2222 (or any other port above 1000)UsePrivilegeSeparation to no| cd /tmp | |
| git clone https://github.com/facebook/watchman.git | |
| cd watchman/ | |
| git checkout v4.7.0 | |
| sudo apt-get install -y autoconf automake build-essential python-dev libtool libssl-dev | |
| ./autogen.sh | |
| ./configure | |
| make | |
| sudo make install |
| import * as React from 'react'; | |
| import { | |
| Field as FormField, | |
| InjectedFormProps, | |
| reduxForm, | |
| } from 'redux-form'; | |
| interface CustomProps { | |
| customText: string; | |
| } |
| // The trick is to link the DeviceSupport folder from the beta to the stable version. | |
| // sudo needed if you run the Mac App Store version. Always download the dmg instead... you'll thank me later :) | |
| // Xcode 10.3 to Xcode 11 Beta | |
| sudo ln -s /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/13.0 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport | |
| // Then restart Xcode and reconnect your devices. You will need to do that for every beta of future iOS versions | |
| // For iOS 13.1 this trick currently seems to work (as of beta 2): |