just run this command on your mac:
brew install https://gist.github.com/raw/1007028/66c1911132a2970b9df9723bd8063ac13e926993/nginx.rb
just run this command on your mac:
brew install https://gist.github.com/raw/1007028/66c1911132a2970b9df9723bd8063ac13e926993/nginx.rb
"download HEAD of master branch of the sample project, i.e., download from github, but don't load Sample project into image" | |
Metacello new | |
project: 'Sample'; | |
repository: 'github://dalehenrich/sample:master/core'; | |
get. | |
"load HEAD of master branch of the sample project, i.e., download from github, and load Sample project into image" | |
Metacello new | |
project: 'Sample'; | |
repository: 'github://dalehenrich/sample:master/core'; |
I assume that by moving to a disk-based structure, we are expecting folks to edit and modify directory structure on disk using the shell and standard editors. This means that all information is going to be stored in plain test files. No binary files. Binary files may be stored in the project structure for use by developers, but the mechanisms for loading code into an image from disk must not involve binary files.
I assume that we will preserve package structure on disk. This means that at a minimum we must be able to preserve the collection of class and method definitions that make up a Monticello package. This includes traits and any other standard definitions that are currently present in a Monticello package. In practice "preserving the package structure" means that one can load a package from disk and then save the package to disk in another location and the directory structure is "identical". The package loader must be respectful of files and directories that are not part of the official package
exampleWithNumber: x | |
"A method that illustrates every part of Smalltalk method syntax | |
except primitives. It has unary, binary, and keyword messages, | |
declares arguments and temporaries, accesses a global variable | |
(but not and instance variable), uses literals (array, character, | |
symbol, string, integer, float), uses the pseudo variables | |
true false, nil, self, and super, and has sequence, assignment, | |
return and cascade. It has both zero argument and one argument blocks." |
#!/usr/bin/env bash | |
rm -rf "${HOME}/Library/Caches/CocoaPods" | |
rm -rf "`pwd`/Pods/" | |
pod update |
const Twit = Meteor.npmRequire('twit'); | |
Accounts.registerLoginHandler('twitter', function(params) { | |
const data = params.twitter; | |
// If this isn't twitter login then we don't care about it. No need to proceed. | |
if (!data) { | |
return undefined; | |
} |
Earlier this year Facebook open sourced its React based rich text editing framework Draft.js. At Facebook it powers status updates, comments & notes. Others used it to build editors matching Medium’s experience.
Together with a whole team of open source contributors I built a plugin architecture on top of Draft.js. In this talk I walk you through the existing plugins and show how you can build your own feature-rich text editor for the web with only a handful lines of code. 🤓
#!/bin/bash | |
set -e | |
docker build -t gcr.io/${PROJECT_PROD}/${NGINX_IMAGE}:$TRAVIS_COMMIT -f docker/nginx.dockerfile . | |
docker build -t gcr.io/${PROJECT_PROD}/${NODE_IMAGE}:$TRAVIS_COMMIT -f docker/node.dockerfile . | |
echo $GCLOUD_SERVICE_KEY_TEST | base64 --decode -i > ${HOME}/gcloud-service-key.json | |
gcloud auth activate-service-account --key-file ${HOME}/gcloud-service-key.json |