Skip to content

Instantly share code, notes, and snippets.

Avatar

İhsan Işık xiprox

View GitHub Profile
@xiprox
xiprox / Dart Class
Last active Sep 11, 2018
Flutter IntelliJ File Templates
View Dart Class
class ${ClassName} {
${ClassName}();
}
@xiprox
xiprox / desktop-switch
Last active Feb 21, 2018
Various AutoHotkey scripts I use for stuff like media controls on a keyboard without the keys, Recycle Bin clearance, quick cmd, desktop switching, etc...
View desktop-switch
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
NumpadDot & NumpadDiv::Send ^#{Left}
NumpadDot & NumpadMult::Send ^#{Right}
View keybase.md

Keybase proof

I hereby claim:

  • I am xiprox on github.
  • I am xip (https://keybase.io/xip) on keybase.
  • I have a public key whose fingerprint is 9F09 979D 164A 6500 5618 0EBD A929 33E5 5BCA FEF1

To claim this, I am signing this object:

@xiprox
xiprox / ViewBasedRadiusShowcaseDrawer.java
Created Jan 2, 2016
A ShowcaseDrawer that draws showcase circle with the greater side of a view divided by 2 as its radius value.
View ViewBasedRadiusShowcaseDrawer.java
import android.content.res.Resources;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.PorterDuff;
import android.graphics.PorterDuffXfermode;
import android.view.View;
import com.github.amlcurran.showcaseview.MaterialShowcaseDrawer;
@xiprox
xiprox / make_drawable_configuration.sh
Last active Nov 4, 2015
Android Drawable Animation Configuration Generator – A simple script for easily creating configuration xml files for drawable animations in android
View make_drawable_configuration.sh
#!/bin/bash
SCRIPT_CONFIGURED=false # CHANGE THIS TO TRUE ONCE YOU MAKE YOUR CHANGES
DRAWABLE_NAME="rocket_animation" # Name of final drawable
FRAME_PREFIX="rocket_animation_" # Prefix in the names of each frame under your res/drawable folder
FRAME_NUMBER=100 # Number of frames the animation has
FRAME_DURATION=200 # Duration of a single frame (in milliseconds)
ONESHOT="false" # Animation plays only once if this is set true