(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.
| yum install -y boost boost-devel | |
| yum install -y make gcc gcc-c++ kernel-devel python-devel | |
| wget https://github.com/arvidn/libtorrent/releases/download/libtorrent-1_0_10/libtorrent-rasterbar-1.0.10.tar.gz | |
| tar zxvf libtorrent-rasterbar-1.0.10.tar.gz | |
| cd libtorrent-rasterbar-1.0.10.tar.gz | |
| ./configure --disable-debug --with-boost-libdir=/usr/lib64 --disable-encryption --enable-python-binding | |
| make && make install | |
| export LD_LIBRARY_PATH=/usr/local/lib/ | |
| cd bindings/python | |
| python setup.py build |
(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.
| Regular expressions and data from | |
| http://lh3lh3.users.sourceforge.net/reb.shtml | |
| Regular expressions benchmarked: | |
| URI ([a-zA-Z][a-zA-Z0-9]*)://([^ /]+)(/[^ ]*)? | |
| Email ([^ @]+)@([^ @]+) | |
| Date ([0-9][0-9]?)/([0-9][0-9]?)/([0-9][0-9]([0-9][0-9])?) | |
| URI|Email ([a-zA-Z][a-zA-Z0-9]*)://([^ /]+)(/[^ ]*)?|([^ @]+)@([^ @]+) | |
| Word .*SCSI- |
| Imagine you have the following structure: | |
| ```elixir | |
| iex> users = [ | |
| john: %{name: "John", age: 27, languages: ["Erlang", "Ruby", "Elixir"]}, | |
| mary: %{name: "Mary", age: 29, languages: ["Elixir", "F#", "Clojure"]} | |
| ] | |
| ``` | |
| We have a keyword list of users where each value is a map containing the name, age and a list of programming languages each user likes. If we wanted to access the age for john, we could write: |
| # Install tmux on Centos release 6.5 | |
| # install deps | |
| yum install gcc kernel-devel make ncurses-devel | |
| # DOWNLOAD SOURCES FOR LIBEVENT AND MAKE AND INSTALL | |
| curl -OL https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz | |
| tar -xvzf libevent-2.0.21-stable.tar.gz | |
| cd libevent-2.0.21-stable | |
| ./configure --prefix=/usr/local |
| You can place js source code in app/assets/javascripts, but exclude it from Sprockets. And add another dir for webpack generated files, like this: | |
| [config/initializers/assets.rb] | |
| Rails.application.config.assets.tap do |assets| | |
| assets.paths.delete_if { |path| | |
| path =~ Regexp.new('app/assets/javascripts') | |
| } | |
| assets.paths.unshift Rails.root.join('app/assets/webpack').to_s | |
| end |
This example shows how it is possible to use a D3 sunburst visualization (partition layout) with data that describes sequences of events.
A good use case is to summarize navigation paths through a web site, as in the sample synthetic data file (visit_sequences.csv). The visualization makes it easy to understand visits that start directly on a product page (e.g. after landing there from a search engine), compared to visits where users arrive on the site's home page and navigate from there. Where a funnel lets you understand a single pre-selected path, this allows you to see all possible paths.
Features:
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
| 1. 將 ajax 的行為都定義在 actions 裡,例如 ProductionActions.js | |
| export function getAllProduction () { | |
| return (dispatch) => { | |
| $.ajax('xxx/products', { | |
| success: (data) => { | |
| disptach({ | |
| type: GET_PRODUCTS | |
| data" data | |
| }); |