This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ಠ▃ಠ | |
ಠ_ರೃ | |
ಥ_ಥ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static Bitmap round(Context context, Bitmap source) { | |
// Use the height and width of our source image as a basis | |
int width = source.getWidth(); | |
int height = source.getHeight(); | |
Paint paint = new Paint(); | |
paint.setAntiAlias(true); | |
paint.setColor(WHITE); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for filename in *.RW2 ; do dcraw -c -w -v $filename | pnmtopng > pngs/$filename.png ; done | |
convert *.png -resize 50% -set filename:f '%t_magnify.%e' +adjoin '%[filename:f]' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example.network.requests; | |
import java.io.UnsupportedEncodingException; | |
import java.util.Map; | |
import com.android.volley.AuthFailureError; | |
import com.android.volley.NetworkResponse; | |
import com.android.volley.ParseError; | |
import com.android.volley.Request; | |
import com.android.volley.Response; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void logToCurlRequest(Request<?> request) { | |
StringBuilder builder = new StringBuilder(); | |
builder.append("curl request: curl "); | |
builder.append("-X \""); | |
switch (request.getMethod()) { | |
case Method.POST: | |
builder.append("POST"); | |
break; | |
case Method.GET: | |
builder.append("GET"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.content.Context; | |
import android.graphics.Bitmap; | |
import android.renderscript.Allocation; | |
import android.renderscript.Element; | |
import android.renderscript.RenderScript; | |
import android.renderscript.ScriptIntrinsicBlur; | |
import com.squareup.picasso.Transformation; | |
public class BlurTransform implements Transformation { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Description: | |
# See the current list of delays or incidents on the London Underground | |
# | |
# Dependencies: | |
# "cheerio": "0.12.1" | |
# | |
# Commands: | |
# hubot tube - Replies with a list of current incidents/delays on the London Underground | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Description: | |
# Quickly look up an Android application using 42Matters search | |
# | |
# Configuration: | |
# | |
# HUBOT_42MATTERS_ACCESS_TOKEN - the access token required for API accesss | |
# | |
# Commands: | |
# hubot app - Replies with the first result from an app search on 42Matters API | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am ryanbateman on github. | |
* I am ryanbateman (https://keybase.io/ryanbateman) on keybase. | |
* I have a public key whose fingerprint is 28BD 3445 A837 A715 BB9E 0699 7320 CC6E 330F C2A1 | |
To claim this, I am signing this object: |
OlderNewer