Skip to content

Instantly share code, notes, and snippets.

View perok's full-sized avatar
💭
🌶

Per Øyvind Kanestrøm perok

💭
🌶
  • Kartverket
  • Stavanger, Norway
  • 08:38 (UTC +02:00)
View GitHub Profile
@perok
perok / file1.py
Last active October 31, 2016 15:48 — forked from anonymous/file1.py
Pasted from IPython
{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"properties": {},
"geometry": {
"type": "Point",
public static Image[] createImagesFromSpritesheet(Bitmap bitmap, int columnFrames, int rowFrames) {
Image[] images = new Image[columnFrames * rowFrames];
Log.v(TAG, "Generating images");
int frameWidth = bitmap.getWidth() / columnFrames;
int frameHeight = bitmap.getHeight() / rowFrames;
Log.v(TAG, frameWidth + " " + frameHeight);
" copy all this into a vim buffer, save it, then...
" source the file by typing :so %
" Now the vim buffer acts like a specialized application for mastering vim
" There are two queues, Study and Known. Depending how confident you feel
" about the item you are currently learning, you can move it down several
" positions, all the way to the end of the Study queue, or to the Known
" queue.
" type ,, (that's comma comma)