Android Studio keyboard shortcuts I use often.
SHIFT + F6to refactor methods, classes, and variable namesCTRL + Oto override methodsCOMMAND + N- Generate getter, setter, and constructor method for a class (when in editor pane)
| var bitcore = require('bitcore-lib') // 0.13.14 | |
| var p2p = require('bitcore-p2p') // 1.1.0 | |
| var MerkleTree = require('webcoin/lib/merkleTree') // 1.0.2 | |
| var address = '1JSbd6CXJHzhGgadpio3HPXTZcSWzBHy3L' | |
| var blockHash = '000000000000000006f9b9d985624bb621221cde9682a038a9a21403376c36f6' // 397690 | |
| // expect: | |
| // tx: 0f15750e8a662ff7d02123677461477eb3b3222d6ca785b98f64c17d7d458699 | |
| // in block: 397697:0000000000000000021b3bd248ee38a47e0a9904d6a4bfbd7fcfe200bb533e97 | |
| // tx: ffe2822fd404e829ef4758617b01d2c4b9b26ab9a1a146e23be468aa0d881fa5 |
| /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ | |
| /* vim: set ts=2 et sw=2 tw=80: */ | |
| /* This Source Code Form is subject to the terms of the Mozilla Public | |
| * License, v. 2.0. If a copy of the MPL was not distributed with this file, | |
| * You can obtain one at http://mozilla.org/MPL/2.0/. */ | |
| #include <errno.h> | |
| #include <signal.h> | |
| #include <stdio.h> | |
| #include <string.h> |
| #!/bin/bash | |
| . build/envsetup.sh | |
| mmm frameworks/base/packages/SystemUI/ | |
| adb start-server | |
| adb shell pkill -TERM -f com.android.systemui | |
| adb remount | |
| adb push $OUT/system/priv-app/SystemUI.apk /system/priv-app/SystemUI.apk | |
| adb shell pkill -TERM -f com.android.systemui | |
| adb shell chmod 0644 /system/app-priv/SystemUI.apk | |
| sleep 2 |
Work in progress, I'll write this up properly when I'm done.
Almost all credit goes to @maxogden for putting me on to this and pointing me in the right direction for each of these items.
Prerequisites:
| Enter into wolfram alpha to draw | |
| witch of Agnesi | |
| ampersand curve | |
| Archimedean spiral | |
| Archimedes' spiral | |
| astroid | |
| astroid pedal curve | |
| atriphtaloid | |
| bean curve |
| /* | |
| * Copyright (C) 2012 Eike Send | |
| * | |
| * Permission is hereby granted, free of charge, to any person obtaining a copy | |
| * of this software and associated documentation files (the "Software"), to | |
| * deal in the Software without restriction, including without limitation the | |
| * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or | |
| * sell copies of the Software, and to permit persons to whom the Software is | |
| * furnished to do so, subject to the following conditions: | |
| * |
| all: egl | |
| egl: egl.cpp | |
| g++ -lX11 -lEGL -lGLESv2 egl.cpp -o egl |
| /* | |
| Random Number Generator | |
| Original author: Taylor Wacker | |
| Modified by: Connor McKay | |
| This is a pseudo random number generator that uses the | |
| Linear Congruential Generator (LCG) to generate random | |
| numbers. | |
| */ | |
| class Random { |