You can make your own HD animated GIF generator.
Follow along with these commands to get started.
git clone git://source.ffmpeg.org/ffmpeg.git
cd ffmpeg| import java.util.Arrays; | |
| class NonCapturing { | |
| public static void main(String... args) { | |
| run(new Runnable() { | |
| @Override public void run() { | |
| System.out.println("Hey!"); | |
| } | |
| }); | |
| } |
| import android.util.Log; | |
| import com.squareup.leakcanary.AnalysisResult; | |
| import com.squareup.leakcanary.DisplayLeakService; | |
| import com.squareup.leakcanary.HeapDump; | |
| import retrofit.RestAdapter; | |
| import retrofit.RetrofitError; | |
| import retrofit.http.Multipart; | |
| import retrofit.http.POST; | |
| import retrofit.http.Part; | |
| import retrofit.mime.TypedFile; |
| <activity | |
| android:name="com.yourapp.ui.NoteTaker"> | |
| <intent-filter> | |
| <action android:name="android.intent.action.SEND" /> | |
| <category android:name="android.intent.category.DEFAULT" /> | |
| <category android:name="com.google.android.voicesearch.SELF_NOTE" /> | |
| <data android:mimeType="*/*" /> | |
| </intent-filter> |
| package com.publicobject.quine; | |
| import com.squareup.javapoet.FieldSpec; | |
| import com.squareup.javapoet.JavaFile; | |
| import com.squareup.javapoet.MethodSpec; | |
| import com.squareup.javapoet.TypeSpec; | |
| import javax.lang.model.element.Modifier; | |
| class Quine { | |
| static String PACKAGE = "com.publicobject.quine"; |
(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.
| //before running make sure you setup a GOPATH env variable and ran: "go get code.google.com/p/go.net/html" | |
| //to run: go run ioCrawler.go -url="http://developers.google.com/" | |
| //also try http://developer.android.com/index.html | |
| //output goo.gl links to try and redeem will be sent to foundLinks.txt | |
| //by the way there's an artificial "rate limit" in func crawler, you can lower that or raise it as you wish | |
| //You can also comment out the onlyGoogleRegex code if you don't want to limit to google.com/youtube | |
| //if you're getting I/O timeout errors, then you might need to increase the timeouts on line 231 |
| /* | |
| * Copyright (C) 2006 The Android Open Source Project | |
| * | |
| * 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 |
This simple script will take a picture of a whiteboard and use parts of the ImageMagick library with sane defaults to clean it up tremendously.
The script is here:
#!/bin/bash
convert "$1" -morphology Convolve DoG:15,100,0 -negate -normalize -blur 0x1 -channel RBG -level 60%,91%,0.1 "$2"
| import urllib2 | |
| from cookielib import CookieJar | |
| cj = CookieJar() | |
| opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cj)) | |
| # login to Piazza. | |
| login_url = 'https://piazza.com/logic/api?method=user.login' | |
| login_data = '{"method":"user.login","params":{"email":"[email protected]","pass":"fakePassword"}}' |