(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.
# -*- coding: utf-8 -*- | |
import datetime | |
from south.db import db | |
from south.v2 import SchemaMigration | |
from django.db import models | |
from django.db.models import get_app, get_models | |
class Migration(SchemaMigration): |
<!DOCTYPE html> | |
<html class="no-js"> | |
<head> | |
<meta charset="utf-8"> | |
<link rel="stylesheet" title="main" href="normalize.min.css" type="text/css"> | |
<link rel="stylesheet" title="main" href="main.css" type="text/css"> | |
<link rel="alternate stylesheet" title="red" href="red.css" type="text/css"> | |
<link rel="alternate stylesheet" title="blue" href="blue.css" type="text/css"> |
/** | |
* Deep copy example: | |
* angular.extend(true, { hello: 'world', app: { id: '1234', groups: [{ id: 1},2,3,4,5] }, ids: [1,2,3] }, { app: { name: 'bond', groups: [6, 7, {hello:'world', test: [1,2,3,4, [12,34,45]]}, 9] }, ids: [4,5,6,3] }); | |
* => "{"hello":"world","app":{"id":"1234","groups":[{"id":1},2,3,4,5,6,7,{"hello":"world","test":[1,2,3,4,[12,34,45]]},9],"name":"bond"},"ids":[1,2,3,4,5,6,3]}" | |
* | |
* Deep copy and dedup arrays | |
* angular.extend(true, true, { hello: 'world', app: { id: '1234', groups: [{ id: 1},2,3,4,5] }, ids: [1,2,3] }, { app: { name: 'bond', groups: [6, 7, {hello:'world', test: [1,2,3,4, [12,34,45]]}, 9] }, ids: [4,5,6,3] }); | |
* => "{"hello":"world","app":{"id":"1234","groups":[{"id":1},2,3,4,5,6,7,{"hello":"world","test":[1,2,3,4,[12,34,45]]},9],"name":"bond"},"ids":[1,2,3,4,5,6]}" | |
* | |
* vs jQuery deep copy |
(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.
Disclaimer: The instructions are the collective efforts from a few places online. | |
Nothing here is my original. But I want to put them together in one place to save people from spending the same time as I did. | |
First off, bundle. | |
================== | |
1. cd to the project directory | |
2. Start the react-native packager if not started | |
3. Download the bundle to the asset folder: | |
curl "http://localhost:8081/index.android.bundle?platform=android" -o "android/app/src/main/assets/index.android.bundle" |
# urls.py | |
from django.conf.urls import url | |
from main import views | |
urlpatterns = [ | |
url(r'^oauthcallback/', views.oauthcallback) | |
] | |
# models.py | |
from django.db import models |
This is a proposal for #ReactiveConf 2017 open call for Lightning talks.
Do you think that using git
command line tool is the most efficient way of interacting with your repository?
In this lightning talk, I will introduce tig
- the ncurses front-end for git
, which will make your interaction with git
much more efficient.
tig
combines the advantages of the command line and GUI tools like qgit
. With a couple of keystrokes, you are
fastlane_version "2.64.1" | |
default_platform :android | |
platform :android do | |
lane :beta do | |
gradle(task: "assembleRelease") | |
appcenter_upload( | |
api_token: "", |
# ios | |
match(...) | |
package = load_json(json_path: "../package.json") | |
increment_version_number(version_number: package["version"]) | |
increment_build_number(build_number: ENV["CIRCLE_BUILD_NUM"] || 1) | |
# android | |
package = load_json(json_path: "../package.json") |