(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.
#!/usr/bin/env bash | |
# Things to do after install ArchLinux (2012.12.01) | |
pacman --noconfirm -S sudo | |
# Enabled archlinuxfr repo | |
arch=$(uname -m) | |
sudo cp /etc/pacman.conf /etc/pacman.conf.bak | |
echo "" >> /etc/pacman.conf | |
echo "[archlinuxfr]" >> /etc/pacman.conf |
/* demo app that uses the inline directive */ | |
var myApp = angular.module('inlineDemo', ['inline']); | |
myApp.config(function ($routeProvider) {}); | |
myApp.controller('names', function ($scope) { | |
console.log('controller'); | |
$scope.masterName = $scope.name = '46'; |
import java.lang.reflect.Field; | |
public class MontyPython { | |
public static void main(String[] args) throws Exception { | |
Field v = Integer.class.getDeclaredField("value"); | |
v.setAccessible(true); | |
v.set(3,5); | |
System.out.printf("Ready the holy hand grenade!\n"); | |
Thread.sleep(1000); | |
System.out.printf("%d\n", 1); | |
Thread.sleep(1000); |
(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.
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
# Every Vagrant virtual environment requires a box to build off of. | |
# Named boxes, like this one, don't need a URL, since the are looked up |
#! /usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
""" | |
Playing Around with the Command Bus Pattern in Python | |
""" | |
import inspect | |
import collections | |
download and install Solr from http://lucene.apache.org/solr/.
you can access Solr admin from your browser: http://localhost:8983/solr/
use the port number used in installation.
1.) If I have a data.frame df <- data.frame(a = c(1, 2, 3), b = c(4, 5, 6), c(7, 8, 9))
...
1a.) How do I select the c(4, 5, 6)
?
1b.) How do I select the 1
?
1c.) How do I select the 5
?
1d.) What is df[, 3]
?
#!/bin/bash | |
wget "https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz" | |
tar -xf libevent-2.0.21-stable.tar.gz | |
cd libevent-2.0.21-stable | |
./configure | |
make | |
make verify | |
sudo make install | |
sudo ldconfig |
Picking the right architecture = Picking the right battles + Managing trade-offs