(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.
(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.
| #!/bin/bash | |
| # Performs a dump of target database and compresses result. | |
| # Outputs to: $DUMPDIR/$DUMPNAME.tar.xz | |
| # Note: Absolute paths are required for use in cron jobs | |
| DBNAME=meteor | |
| ROOTDIR=/Users/alanning/foo | |
| DUMPDIR=$ROOTDIR/dumps |
| <?xml version="1.0" encoding="utf-8"?> | |
| <selector xmlns:android="http://schemas.android.com/apk/res/android"> | |
| <item android:state_enabled="false" | |
| android:color="@color/flat_disabled_text"/> | |
| <item android:color="@color/flat_normal_text"/> | |
| </selector> |
Latest Inkscape version has this functionality built-in now - except for internal links. For that, see https://github.com/oxplot/svglinkify
| /* Add this to functions.php */ | |
| add_filter( 'woocommerce_shortcode_products_query', 'woocommerce_shortcode_products_orderby' ); | |
| function woocommerce_shortcode_products_orderby( $args ) { | |
| $standard_array = array('menu_order','title','date','rand','id'); | |
| if( isset( $args['orderby'] ) && !in_array( $args['orderby'], $standard_array ) ) { | |
| $args['meta_key'] = '_price'; | |
| $args['orderby'] = 'meta_value_num'; |
| #!/usr/bin/env bash | |
| # Create a page in the current dir | |
| echo "My Test Page" > test.html | |
| # Start server | |
| python -m SimpleHTTPServer 8000 &> /dev/null & | |
| pid=$! | |
| # Give server time to start up |
| /* | |
| * Copyright (C) 2015 Tuan Chau (tuanchauict) | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software |
| import android.content.Context; | |
| import android.content.res.TypedArray; | |
| import android.util.AttributeSet; | |
| import android.widget.FrameLayout; | |
| /** | |
| * Created by tuanchauict on 11/18/15. | |
| */ | |
| public class AspectRatioFrameLayout extends FrameLayout { | |
| private static final float DEFAULT_RATIO = 109.33f / 144f; |
| import android.content.pm.PackageManager; | |
| import android.os.Build; | |
| import android.support.annotation.NonNull; | |
| import android.support.v4.app.ActivityCompat; | |
| import android.support.v4.content.ContextCompat; | |
| import android.support.v7.app.AppCompatActivity; | |
| import android.util.SparseArray; | |
| import java.util.ArrayList; |
$ python3 revoke_permission.py
$ python3 revoke_permission.py <device_code>