A very brief guide to Rust syntax. It assumes you are already familiar with programming concepts.
This was written in 2014. It is not a good reference for Rust today, though the content is still correct.
cheats.rs looks like a good alternative.
| call plug#begin('~/.vim/plugged') | |
| "--- neocompleter --- | |
| "Plug 'Shougo/neocomplcache.vim' | |
| "Plug 'Shougo/neocomplete.vim' | |
| "Plug 'Shougo/neosnippet.vim' | |
| "Plug 'Shougo/neosnippet-snippets' | |
| Plug 'Valloric/YouCompleteMe' |
| /// Dart is built around a timer, which basically schedules functions in a queue. | |
| /// The Future class is essentially just sugar on top of the event loop. | |
| /// To help people understand what the event loop actually does, I have written code which implements the event loop. | |
| /// See https://www.dartlang.org/articles/event-loop/ for more information. | |
| import "dart:async"; | |
| class EventLoop { | |
| /// Function Queue. | |
| static final List<Function> queue = []; |
| // Copyright 2015 the Dart project authors. All rights reserved. | |
| // Use of this source code is governed by a BSD-style license | |
| // that can be found in the LICENSE file. | |
| void main() { | |
| int i = 20; | |
| print('fibonacci($i) = ${fibonacci(i)}'); | |
| } | |
| /// Computes the nth Fibonacci number. |
| #!/bin/sh | |
| sudo apt-get remove --purge vim vim-runtime vim-gnome vim-tiny vim-common vim-gui-common | |
| sudo apt-get install liblua5.1-dev luajit libluajit-5.1 python-dev ruby-dev libperl-dev mercurial libncurses5-dev libgnome2-dev libgnomeui-dev libgtk2.0-dev libatk1.0-dev libbonoboui2-dev libcairo2-dev libx11-dev libxpm-dev libxt-dev | |
| sudo mkdir /usr/include/lua5.1/include | |
| sudo ln -s /usr/include/luajit-2.0 /usr/include/lua5.1/include | |
| cd ~ | |
| hg clone https://code.google.com/p/vim/ |
| import 'dart:io'; | |
| import 'dart:async'; | |
| import 'package:html5lib/parser.dart'; | |
| import 'package:html5lib/dom.dart'; | |
| main() { | |
| final url = 'http://comic-walker.com/'; | |
| getHtml(url).then((document) { | |
| // page title |
A very brief guide to Rust syntax. It assumes you are already familiar with programming concepts.
This was written in 2014. It is not a good reference for Rust today, though the content is still correct.
cheats.rs looks like a good alternative.
Alternate title: Cross compiling Windows/Darwin/Linux amd64/386/arm all from linux
After fumbling around trying to figure out the go toolchain and cross compilation configuration, I ran across the wiki page on Go's homepage. It's super helpful, and worked out of the box. I'm including the necessary scripts here in case they get changed or lost, and we can help Google find it (since it's the first real source I've found that "Just Worked"). http://code.google.com/p/go-wiki/wiki/WindowsCrossCompiling
Slides of text change with an effect where each letter fades in on it's own time. Lazy letters...
Forked from Bryan Levay's Pen Bubble-y Text Fader.
A Pen by Anonasaurus Rex on CodePen.
| # Assuming an Ubuntu Docker image | |
| $ docker run -it <image> /bin/bash |