Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
From Meteor's documentation:
In Meteor, your server code runs in a single thread per request, not in the asynchronous callback style typical of Node. We find the linear execution model a better fit for the typical server code in a Meteor application.
This guide serves as a mini-tour of tools, trix and patterns that can be used to run async code in Meteor.
Sometimes we need to run async code in Meteor.methods
. For this we create a Future
to block until the async code has finished. This pattern can be seen all over Meteor's own codebase:
0 | price:.23 sqft:.25 age:.05 2006 | |
1 2 'second_house | price:.18 sqft:.15 age:.35 1976 | |
0 1 0.5 'third_house | price:.53 sqft:.32 age:.87 1924 |
import numpy as np | |
from pandas import * | |
import matplotlib.pyplot as plt | |
Index = ['aaa', 'bbb', 'ccc', 'ddd', 'eee'] | |
Cols = ['A', 'B', 'C', 'D'] | |
df = DataFrame(abs(np.random.randn(5,4)), index=Index, columns = Cols) | |
plt.pcolor(df) | |
plt.yticks(np.arange(0.5, len(df.index), 1), df.index) |
[ Launch: INFO 247 - Lab 7 - #3 - Putting it together (full code) ] 6136776 by Quebecisnice[ Launch: INFO 247 - Lab 7 - #3 - Putting it together (full code) ] 6136775 by Quebecisnice[ Launch: INFO 247 - Lab 6 - #5 ] 5054889 by poezn[ Launch: INFO 247 - Lab 6 - #4 ] 5054883 by poezn[ Launch: INFO 247 - Lab 6 - #3 ] 5054877 by poezn[ Launch: INFO 247 - Lab 6 - #1 ] 5054749 by poezn[ Launch: INFO 247 - Lab 6 - #1 ] 5054734 by poezn
[ Launch: INFO 247 - Lab 7 - #3 - Putting it together (full code) ] 6136775 by Quebecisnice[ Launch: INFO 247 - Lab 6 - #5 ] 5054889 by poezn[ Launch: INFO 247 - Lab 6 - #4 ] 5054883 by poezn[ Launch: INFO 247 - Lab 6 - #3 ] 5054877 by poezn[ Launch: INFO 247 - Lab 6 - #1 ] 5054749 by poezn[ Launch: INFO 247 - Lab 6 - #1 ] 5054734 by poezn
; A REPL-based, annotated Seesaw tutorial | |
; Please visit https://github.com/daveray/seesaw for more info | |
; | |
; This is a very basic intro to Seesaw, a Clojure UI toolkit. It covers | |
; Seesaw's basic features and philosophy, but only scratches the surface | |
; of what's available. It only assumes knowledge of Clojure. No Swing or | |
; Java experience is needed. | |
; | |
; This material was first presented in a talk at @CraftsmanGuild in | |
; Ann Arbor, MI. |
source :rubygems | |
# We are not loading Active Record, nor Active Resources etc. | |
# We can do this in any app by simply replacing the rails gem | |
# by the parts we want to use. | |
gem "actionpack", "~> 3.2" | |
gem "railties", "~> 3.2" | |
gem "tzinfo" | |
# Let's use thin |
#include <iostream> | |
#include <vector> | |
#include <algorithm> | |
#include <cmath> | |
#define forn(i, n) for(int i = 0; i < (n); ++i) | |
#define FUNC(i) (*(dispatch[funcs[i]])) | |
#define MFUNC(o) ([](double a, double b) { return a o b; }) | |
using namespace std; |