By: @BTroncone
Also check out my lesson @ngrx/store in 10 minutes on egghead.io!
Update: Non-middleware examples have been updated to ngrx/store v2. More coming soon!
Table of Contents
By: @BTroncone
Also check out my lesson @ngrx/store in 10 minutes on egghead.io!
Update: Non-middleware examples have been updated to ngrx/store v2. More coming soon!
Table of Contents
export class _BaseRoute { | |
public store: Store<any> = getSingleton(Store); | |
public title: string; | |
constructor() { } | |
routerOnActivate(next: ComponentInstruction, prev: ComponentInstruction) { | |
this.store.dispatch({ type: "UPDATE_ROUTE", payload: { next, prev } }); | |
this.store.dispatch({ type: "UPDATE_UI", payload: { title: this.title } }); | |
} |
import java.util.ArrayList; | |
import java.util.List; | |
import java.util.Map; | |
import com.extjs.gxt.ui.client.Style.SortDir; | |
import com.extjs.gxt.ui.client.data.BasePagingLoadConfig; | |
import com.extjs.gxt.ui.client.data.BasePagingLoader; | |
import com.extjs.gxt.ui.client.data.ModelData; | |
import com.extjs.gxt.ui.client.data.PagingLoadConfig; | |
import com.extjs.gxt.ui.client.data.PagingLoadResult; |
SEVERE: (TypeError) : Cannot read property 'style' of null | |
com.google.gwt.core.client.JavaScriptException: (TypeError) : Cannot read property 'style' of null | |
at Unknown.FAg(Exceptions.java:36) | |
at Unknown.B_e(ColumnHeader.java:1001) | |
at Unknown.C_e(ColumnHeader.java:1043) | |
at Unknown.Y_e(ColumnHeader.java:958) | |
at Unknown.jcc(GridView.java:1980) | |
at Unknown.Occ(GridView.java:1975) | |
at Unknown.kbc(GridView.java:1057) | |
at Unknown.Cbc(GridView.java:1420) |
It gives notifications when someone goes online or offline or typing. Open chat of the contact you want to monitor and start script.
Number.prototype.pad = function(size) { | |
var s = String(this); | |
while (s.length < (size || 2)) {s = "0" + s;} | |
return s; | |
} | |
(1).pad(3) // => "001" | |
(10).pad(3) // => "010" | |
(100).pad(3) // => "100" |
SELECT | |
tc.constraint_name, tc.table_name, kcu.column_name, | |
ccu.table_name AS foreign_table_name, | |
ccu.column_name AS foreign_column_name | |
FROM | |
information_schema.table_constraints AS tc | |
JOIN information_schema.key_column_usage AS kcu | |
ON tc.constraint_name = kcu.constraint_name | |
JOIN information_schema.constraint_column_usage AS ccu | |
ON ccu.constraint_name = tc.constraint_name |
This is a collection of the most common commands I run while administering Postgres databases. The variables shown between the open and closed tags, "<" and ">", should be replaced with a name you choose. Postgres has multiple shortcut functions, starting with a forward slash, "". Any SQL command that is not a shortcut, must end with a semicolon, ";". You can use the keyboard UP and DOWN keys to scroll the history of previous commands you've run.
http://www.postgresql.org/download/linux/ubuntu/ https://help.ubuntu.com/community/PostgreSQL
/** | |
* This code is licensed under the terms of the MIT license | |
* | |
* Deep diff between two object, using lodash | |
* @param {Object} object Object compared | |
* @param {Object} base Object to compare with | |
* @return {Object} Return a new object who represent the diff | |
*/ | |
function difference(object, base) { | |
function changes(object, base) { |