Initially taken by Niko Matsakis and lightly edited by Ryan Levick
- Introductions
- Cargo inside large build systems
- FFI
- Foundations and financial support
| #!/bin/bash | |
| # Function to display usage information | |
| usage() { | |
| echo "Usage: $0 /path/to/input.mp4 [ /path/to/output_directory ]" | |
| exit 1 | |
| } | |
| # Check if at least one argument (input file) is provided | |
| if [ $# -lt 1 ]; then |
| 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 |
| #!/usr/bin/env bash | |
| set -eo pipefail | |
| DATE=$(date +%Y%m%d-%H%M%S) | |
| GROUP_NAME="buildkite-agent" | |
| TEMPLATE_NAME="${GROUP_NAME}-${DATE}" | |
| # Builder Group | |
| gcloud compute instance-templates create "${TEMPLATE_NAME}-builder" \ |
| // @flow | |
| import React from 'react'; | |
| import styled from 'styled-components'; | |
| type GlobalCssValues = 'initial' | 'inherit' | 'unset'; | |
| type WrapValue = 'nowrap' | 'wrap' | 'wrap-reverse' | GlobalCssValues; | |
| type JustifyValue = | |
| | 'center' |
FWIW: I (@rondy) am not the creator of the content shared here, which is an excerpt from Edmond Lau's book. I simply copied and pasted it from another location and saved it as a personal note, before it gained popularity on news.ycombinator.com. Unfortunately, I cannot recall the exact origin of the original source, nor was I able to find the author's name, so I am can't provide the appropriate credits.
| var express = require('express'); | |
| var request = require('request'); | |
| var app = express(); | |
| var port = Number(process.env.PORT || 3000); | |
| var apiServerHost = (process.env.ELASTIC_URL || 'http://127.0.0.1:9200') | |
| // Listen for requests on all endpoints | |
| app.use('/', function(req, res, body) { | |
| // short-circuit favicon requests for easier debugging |
| platform :ios, '7.0' | |
| # Core Data | |
| pod 'SSDataKit', :git => 'https://github.com/soffes/SSDataKit', :commit => '60d432e734ae11e8cfedac8ac5f68c0ce8a1b9ba' | |
| # On-disk & in-memory caching | |
| pod 'SAMCache' | |
| # Fast image view for Core Image | |
| pod 'SAMCoreImageView', '0.1.3' |
| # config/routes.rb | |
| resources :documents do | |
| scope module: 'documents' do | |
| resources :versions do | |
| post :restore, on: :member | |
| end | |
| resource :lock | |
| end | |
| end |
| bundler_args: --without development --path=~/.bundle | |
| language: ruby | |
| rvm: | |
| - 1.9.3 | |
| env: | |
| global: | |
| - BUNDLE_ARCHIVE="your-bundle-name" | |
| - AWS_S3_REGION="us-east-1" | |
| - AWS_S3_BUCKET="your-bucket-name" | |
| - RAILS_ENV=test |