(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.
$ cd ~/Downloads/redis-2.4.14 | |
$ make test | |
$ make |
public static Bitmap loadBitmapFromView(View view) { | |
Bitmap bitmap = Bitmap.createBitmap( view.getMeasuredWidth(), view.getMeasuredHeight(), Bitmap.Config.ARGB_8888); | |
Canvas canvas = new Canvas(bitmap); | |
view.layout(0, 0, view.getMeasuredWidth(), view.getMeasuredHeight()); | |
view.draw(canvas); | |
return bitmap; | |
} |
<?php | |
/** | |
* @copyright 2012 TheHydroImpulse, Daniel Fagnan | |
* @version 0.1 | |
* @todo Add an overwite ability. Among other things. | |
* @note Use this as you wish. Extend it, Mash it. Enjoy it. | |
*/ |
#Gets the url, the width and height like integer. | |
def facebook_button(url,width,height) | |
"<iframe src=\"http://www.facebook.com/plugins/like.php?href=#{url}&;layout=standard&<br> | |
show_faces=false&width=380&action=like&colorscheme=light&height=#{width}&locale=pt_BR\" scrolling=\"no\" frameborder=\"0\" style=\"border:none; overflow:hidden; width:#{width}px; height:#{height}px;\" allowTransparency=\"true\"></iframe>".html_safe | |
end | |
#gets the actual url | |
def twitter_button | |
"<a href=\"https://twitter.com/share\" class=\"twitter-share-button\" data-lang=\"pt\">Tweetar</a> | |
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=\"//platform.twitter.com/widgets.js\";fjs.parentNode.insertBefore(js,fjs);}}(document,\"script\",\"twitter-wjs\");</script>".html_safe |
r.table("test").filter( function(doc) { | |
return doc("adresses").contains(function(adress) { | |
return adress("city").eq("Paris") | |
}) | |
}) | |
/* | |
{ |
var readline = require('readline'), | |
_ = require('lodash'), | |
charm = require('charm')(process.stdout), | |
rl = readline.createInterface(process.stdin, process.stdout); | |
var selected = 0; | |
var choices = [ | |
"foo", | |
"bar", | |
"javascript", |
package analyse; | |
import java.io.BufferedReader; | |
import java.io.File; | |
import java.io.FileReader; | |
import java.io.IOException; | |
import java.util.ArrayList; | |
import java.util.HashMap; | |
import java.util.List; | |
import java.util.Map; |
package sandbox; | |
import static java.nio.file.StandardWatchEventKinds.ENTRY_CREATE; | |
import static java.nio.file.StandardWatchEventKinds.ENTRY_DELETE; | |
import static java.nio.file.StandardWatchEventKinds.ENTRY_MODIFY; | |
import java.io.IOException; | |
import java.nio.file.ClosedWatchServiceException; | |
import java.nio.file.FileSystem; |
(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.
My notes for Dokku on Digital Ocean.
Install dokku-cli (gem install dokku-cli
) for a more Heroku-like CLI experience (dokku config:set FOO=bar
).
# List/run commands when not on Dokku server (assuming a "henroku" ~/.ssh/config alias)
ssh henroku dokku
ssh henroku dokku config:get my-app