Skip to content

Instantly share code, notes, and snippets.

View cami7ord's full-sized avatar

Camilo Baquero Jiménez cami7ord

View GitHub Profile
<!DOCTYPE html>
<html>
<head>
<title>Test with RxJS</title>
</head>
<body>
<input type="text" id="txtinput" placeholder="Search in wikipedia">
<button>Click me</button>
<select id="select"></select>
@andyrbell
andyrbell / scanner.sh
Last active April 5, 2024 09:01
Make a pdf look scanned using ImageMagick
# use ImageMagick convert
# the order is important. the density argument applies to input.pdf and resize and rotate to output.pdf
convert -density 90 input.pdf -rotate 0.5 -attenuate 0.2 +noise Multiplicative -colorspace Gray output.pdf
@cami7ord
cami7ord / ZoomLayout.java
Last active December 9, 2023 11:03
Pinch-zoomable Android frame layout with double tap to zoom functionality.
/**
* Adapted from anorth at https://gist.github.com/anorth/9845602.
* by cami7ord on Sept 20 - 2017.
*/
import android.content.Context;
import android.util.AttributeSet;
import android.util.Log;
import android.view.MotionEvent;
import android.view.ScaleGestureDetector;