Skip to content

Instantly share code, notes, and snippets.

View aviaryan's full-sized avatar
:electron:
Working

Avi Aryan aviaryan

:electron:
Working
View GitHub Profile
@aviaryan
aviaryan / zsh-on-windows.md
Last active February 9, 2024 03:22
Installing zsh and oh-my-zsh on Windows
  1. Install zsh from cygwin
  2. Install oh-my-zsh from https://github.com/robbyrussell/oh-my-zsh . Follow the manual instructions
  3. To make zsh default on ConEmu, create a task with C:\cygwin64\bin\mintty.exe /usr/bin/zsh - . Make it the defaut shell.
  4. To start a zsh shell on demand, add this batch script to your path or start menu or wherever.
start C:\cygwin64\bin\mintty.exe /usr/bin/zsh -
@aviaryan
aviaryan / Android Studio Tricks.md
Created January 17, 2016 10:03 — forked from arriolac/Android Studio Tricks.md
Some Android Studio Tricks.

Android Studio Notes

Keyboard Shortcuts for Mac

  • SHIFT + F6 to refactor methods, classes, and variable names
  • CTRL + O to override methods
  • COMMAND + N
    • Generate getter, setter, and constructor method for a class (when in editor pane)
    • Generate new class, files, package, etc. (when in project pane)
  • CTRL+ALT+O to auto-import
  • OPTION + COMMAND + L to reformat code
@aviaryan
aviaryan / clipjump-disable-externally.ahk
Created November 3, 2015 09:56
External script to disable clipjump
SetWorkingDir, % A_ScriptDir
cj := new Clipjump()
cj.runLabel("disable_clipjump") ; toggles clipjump disable status
ExitApp
#include S:\Portables\AutoHotkey\My Scripts\ClipStep\publicAPI.ahk
; I should rather create an API function for this..
@aviaryan
aviaryan / DiamondNegative.java
Created September 15, 2015 10:39
Diamond shape generator Java
package class1;
public class DiamondNegative {
public static void main(String [] args){
int sz = 11;
int i,j,k,l,r;
for (i=0; i<sz; i++) System.out.print("* ");
System.out.println();
for (i=0; i<sz-2; i++){
k = 2*i+1;
@aviaryan
aviaryan / clipjump-publicapi-example.ahk
Last active August 29, 2015 14:26
Clipjump publicAPI example
SetWorkingDir, % A_ScriptDir
cj := new Clipjump()
cj.blockMonitoring(1)
msgbox % cj.version
Clipboard := "changes"
Clipboard := "morechanges"
msgbox % "Clipboard has " Clipboard ". But Clipjump has ? "
cj.blockMonitoring(0)
@aviaryan
aviaryan / 0_reuse_code.js
Last active August 29, 2015 14:19
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@aviaryan
aviaryan / idea-jekyll-web.txt
Created March 13, 2015 13:38
Web FrontEnd to push to a Jekyll Blog on GitHub #ideabin
and yes this should include a handy preview option and markdown cheatsheet.
global cj := new Clipjump()
; msgbox % cj.version ; test
curCh := cj["CN.NG"]
; msgbox % curCh
cj.paste(curCh, 3)
Send {Tab}
cj.paste(curCh, 2)
@aviaryan
aviaryan / css-box-noimage.html
Last active August 19, 2023 03:10
CSS message boxes without using any image or icon
<html>
<head><title>Testing boxes</title>
<style>
.symbol {
font-size: 0.9em;
font-family: Times New Roman;
border-radius: 1em;
padding: .1em .6em .1em .6em;
font-weight: bolder;
@aviaryan
aviaryan / cj-pst-pubapi.ahk
Created July 15, 2014 15:27
clipjump paste from channel public api example
#include publicAPI.ahk
; create clipjump class
cj := new Clipjump()
; the channel number
myChannel := 2
; get channel population
msgbox % num_o_cl := cj.getChStrength(myChannel)