Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| #!/bin/bash | |
| # | |
| # This script installs and configures couchdb on a fresh Amazon Linux AMI instance. | |
| # | |
| # Must be run with root privileges | |
| # Tested with Amazon Linux AMI release 2011.02.1.1 (ami-8c1fece5) | |
| # | |
| export BUILD_DIR="$PWD" |
| #!/bin/sh -e | |
| #git-cache-meta -- simple file meta data caching and applying. | |
| #Simpler than etckeeper, metastore, setgitperms, etc. | |
| #from http://www.kerneltrap.org/mailarchive/git/2009/1/9/4654694 | |
| #modified by n1k | |
| # - save all files metadata not only from other users | |
| # - save numeric uid and gid | |
| # 2012-03-05 - added filetime, andris9 |
| // you can make a construct for those | |
| // times you want to ignore exceptions: | |
| // here's the closure that can ignore things | |
| def ignoring = { Class<? extends Throwable> catchMe, Closure callMe -> | |
| try { | |
| callMe.call() | |
| } catch(e) { | |
| if (!e.class.isAssignableFrom(catchMe)) { | |
| throw e |
| // Copyright 2019 Google LLC. | |
| // SPDX-License-Identifier: Apache-2.0 | |
| // Basic p(r)olyfill for proposed feature | |
| // This defines no successor of empty arrays, so the range for prefix | |
| // [] or [[],[]] has no upper bound. | |
| // An alternate definition would preclude adding additional nesting, | |
| // so the range for prefix [] would have upper bound [[]] and the | |
| // range for prefix [[], []] would have upper bound [[], [[]]]. |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| # | |
| # Vagrantfile for testing | |
| # | |
| Vagrant::configure("2") do |config| | |
| # the Chef version to use | |
| config.omnibus.chef_version = "11.4.4" | |
| def configure_vbox_provider(config, name, ip, memory = 384) | |
| config.vm.provider :virtualbox do |vbox, override| |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| #![feature(mpsc_select, box_syntax)] | |
| use std::io; | |
| use std::process::Command; | |
| use std::sync::mpsc::{channel, Receiver, Select}; | |
| use std::string::FromUtf8Error; | |
| use std::thread::spawn; | |
| #[derive(Debug)] | |
| enum PipeError { |
| # Hello, and welcome to makefile basics. | |
| # | |
| # You will learn why `make` is so great, and why, despite its "weird" syntax, | |
| # it is actually a highly expressive, efficient, and powerful way to build | |
| # programs. | |
| # | |
| # Once you're done here, go to | |
| # http://www.gnu.org/software/make/manual/make.html | |
| # to learn SOOOO much more. |
| import { Component } from "React"; | |
| export var Enhance = ComposedComponent => class extends Component { | |
| constructor() { | |
| this.state = { data: null }; | |
| } | |
| componentDidMount() { | |
| this.setState({ data: 'Hello' }); | |
| } | |
| render() { |