(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.
from __future__ import unicode_literals | |
from django.conf import settings | |
class LanguageTabsMixin(object): | |
change_form_template = 'admin/modeltranslation/change_form.html' | |
def change_view(self, request, object_id, form_url='', extra_context=None): | |
context = extra_context or {} |
google.com | |
youtube.com | |
facebook.com | |
baidu.com | |
yahoo.com | |
amazon.com | |
wikipedia.org | |
google.co.in | |
twitter.com | |
qq.com |
sudo add-apt-repository ppa:ubuntu-toolchain-r/test | |
sudo apt-get update | |
sudo apt-get install gcc-5 g++-5 | |
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 60 --slave /usr/bin/g++ g++ /usr/bin/g++-5 |
var gulp = require('gulp'); | |
var sourcemaps = require('gulp-sourcemaps'); | |
var source = require('vinyl-source-stream'); | |
var buffer = require('vinyl-buffer'); | |
var browserify = require('browserify'); | |
var watchify = require('watchify'); | |
var babel = require('babelify'); | |
function compile(watch) { | |
var bundler = watchify(browserify('./src/index.js', { debug: true }).transform(babel)); |
<html> | |
<head> | |
<title>Select styles with CSS only</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<style> | |
body { | |
background-color: #fff; | |
font-family: helvetica, sans-serif; | |
margin: 4% 10% | |
} |
this is over 8 years old, see revisions if you really want to see it |
(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.
""" | |
Do not rename the table for plugins in the first "create" migration. | |
OR: if you do... make the create table statement only run if the table does not already exist. | |
""" | |
class Migration(): | |
def forwards(self, orm): | |
# ... | |
from fabric.api import task, env, run, local, roles, cd, execute, hide, puts,\ | |
sudo | |
import posixpath | |
import re | |
env.forward_agent = True | |
env.project_name = 'parkhotel' # var | |
env.repository = '[email protected]:benzkji/bnzk_{project_name}.git'.format(**env) | |
env.local_branch = 'master' | |
env.remote_ref = 'origin/master' |
App = Ember.Application.create({ | |
customEvents: { | |
swipeLeft: 'swipeLeft', | |
swipeRight: 'swipeRight', | |
swipeLeftTwoFinger: 'swipeLeftTwoFinger', | |
swipeRightTwoFinger: 'swipeRightTwoFinger', | |
dragDown: 'dragDown', | |
dragUp: 'dragUp', | |
dragDownTwoFinger: 'dragDownTwoFinger', | |
dragUpTwoFinger: 'dragUpTwoFinger' |