(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.
| /** | |
| * Add the field to the checkout | |
| **/ | |
| add_action('woocommerce_after_order_notes', 'my_custom_checkout_field'); | |
| function my_custom_checkout_field( $checkout ) { | |
| echo '<div id="my_custom_checkout_field"><h3>'.__('My Field').'</h3>'; | |
| /** |
| <?php | |
| /** | |
| * Add checkbox field to the checkout | |
| **/ | |
| add_action('woocommerce_after_order_notes', 'my_custom_checkout_field'); | |
| function my_custom_checkout_field( $checkout ) { | |
| echo '<div id="my-new-field"><h3>'.__('My Checkbox: ').'</h3>'; |
| // A* for libgdx that is simple but optimized. | |
| package test; | |
| import com.badlogic.gdx.ApplicationAdapter; | |
| import com.badlogic.gdx.Gdx; | |
| import com.badlogic.gdx.backends.lwjgl.LwjglApplication; | |
| import com.badlogic.gdx.graphics.Color; | |
| import com.badlogic.gdx.graphics.GL20; | |
| import com.badlogic.gdx.graphics.glutils.ShapeRenderer; |
(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.
| # Ask for the user password | |
| # Script only works if sudo caches the password for a few minutes | |
| sudo true | |
| # Install kernel extra's to enable docker aufs support | |
| # sudo apt-get -y install linux-image-extra-$(uname -r) | |
| # Add Docker PPA and install latest version | |
| # sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9 | |
| # sudo sh -c "echo deb https://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list" |
| import { Injectable } from 'angular2/core'; | |
| import { Storage } from './storage'; | |
| import { CurrentUser } from '../interfaces/common'; | |
| @Injectable() | |
| export class Authentication{ | |
| private _storageService : Storage; | |
| private _userKey : string = "CURRENT_USER"; | |
| constructor(storageService : Storage){ |
| #!/bin/bash | |
| # -*- ENCODING: UTF-8 -*- | |
| #Requiere de permisos de ejecución:$chmod -x prepros_install.sh | |
| #Ejecutar como Root: $bash prepros_install.sh | |
| #Validando Acceso Root | |
| if [[ $EUID -ne 0 ]]; then | |
| echo "Tienes que ejecutar este script como Root" 1>&2 | |
| exit 1 | |
| fi |
A complete list of RxJS 5 operators with easy to understand explanations and runnable examples.
| var webpack = require('webpack'); | |
| var path = require('path'); | |
| var HtmlWebpackPlugin = require('html-webpack-plugin'); | |
| var src = path.join(__dirname, 'src'); | |
| var config = { | |
| devServer: { | |
| hot: true, |
| const response = await fetch(`https://catappapi.herokuapp.com/users/${userId}`) | |
| const data = await response.json() | |
| return data.imageUrl | |
| } |