Skip to content

Instantly share code, notes, and snippets.

View oozzal's full-sized avatar
🇳🇵
learning

Uzzal Devkota oozzal

🇳🇵
learning
View GitHub Profile
@ffloyd
ffloyd / .spacemacs
Created January 29, 2017 17:36
spacemacs config
;; -*- mode: emacs-lisp -*-
;; This file is loaded by Spacemacs at startup.
;; It must be stored in your home directory.
(defun dotspacemacs/layers ()
"Configuration Layers declaration.
You should not put any user code in this function besides modifying the variable
values."
(setq-default
;; Base distribution to use. This is a layer contained in the directory
@oozzal
oozzal / mac_mail.sh
Created August 12, 2014 11:31
Send mail from mac terminal.
mail -s "Cool Subject" [email protected] <<EOF
map <silent> <C-i> :NERDTreeToggle<CR>
EOF
@KamilLelonek
KamilLelonek / index.html
Created February 20, 2014 07:17
Encryption between JS and Ruby
<!doctype html>
<html>
<head>
<title>JavaScript RSA Encryption</title>
<script src="http://code.jquery.com/jquery-2.1.0.min.js"></script>
<script src="jsencrypt.min.js"></script>
<!-- https://github.com/travist/jsencrypt/tree/master/src -->
<script type="text/javascript">
$(function() {
$('#testme').click(function() {
@oozzal
oozzal / pull_apk.md
Last active September 9, 2024 10:19
Pull Apk from device
  1. Determine the package name of the app, e.g. "com.example.someapp". Skip this step if you already know the package name.

adb shell pm list packages

Look through the list of package names and try to find a match between the app in question and the package name. This is usually easy, but note that the package name can be completely unrelated to the app name. If you can't recognize the app from the list of package names, try finding the app in Google Play using a browser. The URL for an app in Google Play contains the package name.

  1. Get the full path name of the APK file for the desired package.
@oozzal
oozzal / game.js
Created January 22, 2014 11:20
Quintus Ball Animation
var Q = Quintus().include("Sprites").setup({maximize: true});
// My extended module
Q.Sprite.extend("MySprite", {
orientation: {
horizontal: 'h',
vertical: 'v'
},
leftEdge: function() {
@roman01la
roman01la / index.html
Created June 17, 2013 01:32
THREE.js scene setup with JSONLoader for OSM2WebGL demo
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
</head>
<body>
<div class="viewport"></div>
<script src="//cdnjs.cloudflare.com/ajax/libs/three.js/r58/three.min.js"></script>
<script src="//threejs.org/examples/js/controls/OrbitControls.js"></script>