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:
def youtube_id(youtube_url) | |
regex = /(?:youtube(?:-nocookie)?\.com\/(?:[^\/\n\s]+\/\S+\/|(?:v|e(?:mbed)?)\/|\S*?[?&]v=)|youtu\.be\/)([a-zA-Z0-9_-]{11})/ | |
match = regex.match(youtube_url) | |
if match && !match[1].blank? | |
match[1] | |
else | |
nil | |
end | |
end | |
const contractMachine = Machine({ | |
id: 'contracts', | |
initial: 'created', | |
context: {}, | |
states: { | |
created: { | |
on: { | |
SAVE: 'created', | |
SUBMIT: 'estimated', |
# app/models/friendship.rb | |
class Friendship < ApplicationRecord | |
belongs_to :user | |
belongs_to :friend, class_name: 'User' | |
end |
> Thank you for reaching out to Autonomous! I am sorry to hear that you are having some trouble with your SmartDesk | |
> but I will be glad to assist. It sounds like your system needs a "hard reset" can I please have you follow these | |
> steps thoroughly. | |
Reset Steps: | |
1. Unplug the desk for 20 seconds. Plug it back in. Wait a full 20 seconds. | |
2. Press the up and down buttons until the desk lowers all the way and beeps or 20 seconds pass. | |
3. Release both buttons. | |
4. Press the down buttons until the desk beeps one more time or 20 seconds pass. |
ruby '2.7.1' | |
gem 'rails', github: 'rails/rails' | |
gem 'tzinfo-data', '>= 1.2016.7' # Don't rely on OSX/Linux timezone data | |
# Action Text | |
gem 'actiontext', github: 'basecamp/actiontext', ref: 'okra' | |
gem 'okra', github: 'basecamp/okra' | |
# Drivers |
These are instructions for setting up git to authenticate with GitHub when you have 2-factor authentication set up. This authentication should be inherited by any GUI client you are using. These are intentionally brief instructions, with links to more detail in the appropriate places.
Download and install the git command-line client (if required).
Open the git bash window and introduce yourself to git (if required):
git config --global user.name 'Firstname Lastname'
git config --global user.email 'firstname.lastname@gov.bc.ca'
/* | |
Author: Aseem Lalfakawma <alalfakawma.github.io> | |
This SCSS mixin will allow sizing of table columns in Bulma CSS Framework. | |
The Bulma framework does not support this yet, this small code snippet fixes this. | |
USAGE: | |
* Should be applied on TH element, it controls all the columns under it * | |
The class should be "is-#", | |
is-1 will give the first widthamount, is-2 will give the second. | |
Eg. The code below shows the widthAmounts as (1, 2.5, 3, 4 , 5, 6, 7) |
HTTP status code symbols for Rails | |
Thanks to Cody Fauser for this list of HTTP responce codes and their Ruby on Rails symbol mappings. | |
Status Code Symbol | |
1xx Informational | |
100 :continue | |
101 :switching_protocols | |
102 :processing |