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
var boysSection = false; | |
var test = $('#mw-content-text p a').map(function(data, w) { | |
var $name = $(w); | |
var name = $name.text(); | |
if (name == "Aad") boysSection = true; | |
var isBoy = boysSection || $('*:contains("'+name+' (+m)")').length > 0; | |
var isGirl = !boysSection || $('*:contains("'+name+' (+v)")').length > 0; |
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.graphics.Bitmap; | |
import android.util.Log; | |
import com.squareup.picasso.Transformation; | |
/** | |
* Created by Sander Versluys on 21/10/14. | |
*/ | |
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
#!/bin/bash | |
file=$1 | |
function tile() { | |
convert $file -scale ${s}%x -crop 256x256 \ | |
-set filename:tile "%[fx:page.x/256]_%[fx:page.y/256]" \ | |
+repage +adjoin "${file%.*}_${s}_%[filename:tile].${file#*.}" | |
} | |
s=100 | |
tile | |
s=50 |
OlderNewer