Skip to content

Instantly share code, notes, and snippets.

Avatar
😇
Launched my first mac app –– Presentify

Ram rampatra

😇
Launched my first mac app –– Presentify
View GitHub Profile
@HaNdTriX
HaNdTriX / image_to_data_url.js
Last active Mar 12, 2021
Convert an image to base64URL.
View image_to_data_url.js
/**
* Converts an image to a dataURL
* @param {String} src The src of the image
* @param {Function} callback
* @param {String} outputFormat [outputFormat='image/png']
* @url https://gist.github.com/HaNdTriX/7704632/
* @docs https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement#Methods
* @author HaNdTriX
* @example
*
@ZeroDragon
ZeroDragon / How to clone a git repo to an existing folder (not empty).md
Last active Apr 9, 2021
How to clone a git repo to an existing folder (not empty)
View How to clone a git repo to an existing folder (not empty).md
  1. First get to the existing directory
    $ cd my/folder/

  2. Now start a new git repository
    $ git init

  3. Identify if the current elements on the directory are needed or not and add them to the .gitignore file. When ready...
    $ vim .gitignore

  4. When ready create the first commit on the server

@tobiasschuerg
tobiasschuerg / FilteredArrayAdapter.java
Created Aug 31, 2012
Android Arrayadapter with text filtering for the use with a TextWatcher.
View FilteredArrayAdapter.java
/**
* Arrayadapter (for Android) with text filtering for the use with a TextWatcher.
* Note: the objects in the List need a valid toString() method.
* @author Tobias Schürg
*
*/
public class FilteredArrayAdapter extends ArrayAdapter<ImageObject> {
@tsabat
tsabat / zsh.md
Last active Apr 8, 2021
Getting oh-my-zsh to work in Ubuntu
View zsh.md

Prereq:

apt-get install zsh
apt-get install git-core

Getting zsh to work in ubuntu is weird, since sh does not understand the source command. So, you do this to install zsh

wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh