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:
| // Creating Meteor HOCs | |
| import { Meteor } from 'meteor/meteor'; | |
| import { createContainer } from 'meteor/react-meteor-data'; | |
| import React from 'react'; | |
| import { compose } from 'recompose'; | |
| // Assuming we have a Meteor collection here... | |
| import TodosCollection from '../api/TodosCollection'; |
| <% | |
| # RNB, A VIM COLORSCHEME TEMPLATE | |
| # Author: Romain Lafourcade (https://github.com/romainl) | |
| # Canonical URL: https://gist.github.com/romainl/5cd2f4ec222805f49eca | |
| # This template is designed to help vimmers create their own colorschemes | |
| # without much effort. | |
| # | |
| # You will need Ruby to generate your colorscheme but Ruby knowledge is | |
| # not needed at all. |
| const a = new Set([1, 2, 3, 4, 4, 4]) | |
| const b = new Set([3, 4, 5, 6]) | |
| const intersect = (set1, set2) => [...set1].filter(num => set2.has(num)) | |
| const differ = (set1, set2) => [...set1].filter(num => !set2.has(num)) | |
| const joinSet = (set1, set2) => [...set1, ...set2] | |
| const myIntersectedSet = new Set(intersect(a, b)) | |
| console.log('myIntersectedSet', myIntersectedSet) |
| #! /bin/bash | |
| ###################### USAGE ###################################### | |
| usage() { | |
| echo " | |
| Usage: mongotos3 [-t n] mongo_host mongo_collection s3_bucket | |
| -t : number of parallel processes to use | |
| mongo_host : the host of the mongodb server | |
| mongo_collection : the collection to collecthe gridfs data from | |
| s3_bucket : the name of the bucket you want to cp the files to | |
| " |
| #!/usr/bin/env bash | |
| set -e | |
| # Uninstall Java 9 off the bat, so we can fix our local installation | |
| if brew cask ls --versions "java" &>/dev/null; then | |
| echo "Uninstalling Java" | |
| brew cask uninstall java | |
| fi | |
| # Install jenv, java8 and java9 | |
| brew install jenv | |
| brew cask install caskroom/versions/java8 |
| const path = require('path'); | |
| const fs = require('fs'); | |
| const util = require('util'); | |
| // get application version from package.json | |
| const appVersion = require('../package.json').version; | |
| // promisify core APIs | |
| const readDir = util.promisify(fs.readdir); | |
| const writeFile = util.promisify(fs.writeFile); |
| { | |
| "scripts": { | |
| "build": "node build/build.js && npm run post:build", | |
| "post:build": "node build/post-build.js" | |
| }, | |
| } |
| import axios from 'axios'; | |
| export const refreshPageMixin = { | |
| data() { | |
| return { | |
| currentHash: '{{POST_BUILD_ENTERS_HASH_HERE}}', | |
| token: localStorage.getItem('user-token'), | |
| hashChanged: false, | |
| newHash: '' | |
| } |
| <template> | |
| <div id="app"> | |
| <router-view></router-view> | |
| <div class="refresh-container" v-if="hashChanged && $root.env !== 'development'"> | |
| <div class="notification-header"> | |
| <button type="button" class="close-refresh-modal" @click="closeModal" aria-label="Close"> | |
| <span aria-hidden="true"><i class="fal fa-times fa-sm"></i></span> | |
| </button> | |
| </div> | |
| <div class="notification-body"> |