(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.
angular.module('app.resources', ['ngResource']) | |
.factory('api', function ($resource) { | |
var api = { | |
defaultConfig : {id: '@id'}, | |
extraMethods: { | |
'update' : { | |
method: 'PUT' | |
} |
# Compiled source # | |
################### | |
*.com | |
*.class | |
*.dll | |
*.exe | |
*.o | |
*.so | |
# Packages # |
# Build | |
IMAGEID=$(cat /dev/urandom | tr -dc 'a-z0-9' | fold -w 32 | head -n 1) && sudo docker build -t $IMAGEID . | |
# Run new container | |
CONTAINER_ID=$(sudo docker run -t -d -p 0.0.0.0:81:80 $IMAGEID) | |
# Login into running containe. REQUIRES DOCKER >= 1.3 | |
sudo docker exec -it $CONTAINER_ID bash | |
# !!! DEPRECATED !!! Login into running container. REQUIRES DOCKER < 0.9 |
<SCRIPT TYPE="text/javascript"> | |
var data = { | |
action: 'boj_myplugin_do_ajax_request', | |
some_var: 'some value', | |
other_var: 'other value' | |
}; | |
jQuery.post( 'http://example.com/wp-admin/admin-ajax.php', data, function( resp ) { | |
/* | |
1. process response object 'resp' | |
2. update part of page |
#!/bin/bash | |
BUCKETNAME="your_s3_bucket" | |
LOGDIR="/var/log/nginx" | |
LOGDATE=$(date +"%Y%m%d") | |
HOST=$(wget -q -O- http://169.254.169.254/latest/meta-data/instance-id) | |
LOGFILES=("access") | |
echo "Moving access logs to dated logs.." |
package main | |
import ( | |
"bytes" | |
"compress/gzip" | |
"database/sql/driver" | |
"errors" | |
"fmt" | |
"github.com/jmoiron/sqlx" | |
_ "github.com/mattn/go-sqlite3" |
This is free and unencumbered software released into the public domain. | |
Anyone is free to copy, modify, publish, use, compile, sell, or | |
distribute this software, either in source code form or as a compiled | |
binary, for any purpose, commercial or non-commercial, and by any | |
means. | |
In jurisdictions that recognize copyright laws, the author or authors | |
of this software dedicate any and all copyright interest in the | |
software to the public domain. We make this dedication for the benefit |
<?php | |
/* | |
* Plugin Name: Ajax Test | |
* Plugin URI: trepmal.com | |
* Description: | |
* Version: | |
* Author: Kailey Lampert | |
* Author URI: kaileylampert.com | |
* License: GPLv2 or later | |
* TextDomain: some-plugin |