Skip to content

Instantly share code, notes, and snippets.

View gion's full-sized avatar
💭
🦄 🌈 🍦

Bogdan Gradinariu gion

💭
🦄 🌈 🍦
View GitHub Profile
@aaronksaunders
aaronksaunders / snippet.js
Last active July 31, 2018 08:14
Cordova camera - Choose camera OR photo library
//
// you need the actionsheet plugin, image picker plugin and the camera plugin for this code to work
//
/**
* displays an action sheet for the user to select a photo from
* the gallery or using the camera
*
* @param _event {Object} information from the webview on the event
*
@razvan-tudosa
razvan-tudosa / safari-only.less
Last active August 29, 2015 14:23
Safari detection using only less
.safari-only(@rules) {
// this detects safari 7.1+
// http://stackoverflow.com/questions/16348489/is-there-a-css-hack-for-safari-only-not-chrome
_::-webkit-full-page-media, _:future, :root {
@rules();
}
}
@wenzhixin
wenzhixin / ubuntu14.04-command-line-install-android-sdk
Last active January 16, 2024 21:15
Ubuntu 14.04 command line install android sdk
# install openjdk
sudo apt-get install openjdk-7-jdk
# download android sdk
wget http://dl.google.com/android/android-sdk_r24.2-linux.tgz
tar -xvf android-sdk_r24.2-linux.tgz
cd android-sdk-linux/tools
# install all sdk packages
@btford
btford / friendlify
Created June 25, 2013 21:59
this is why higher order programming was invented
var friendlify = function (fn, log) {
var patsOnTheBack = [
'you are great',
'you\'re the best',
'wow you\'re awesome'
];
log = log || console.log;
return function () {
var args = arguments;
log(patsOnTheBack[Math.floor(patsOnTheBack.length * Math.random())] + '!');
@gion
gion / jquery.plugin.complete-template.js
Last active December 16, 2015 16:49
a more complete jQuery plugin template that holds bootstrap code for
/**
* copyright stuff should go here to
*
* @author: bogdan.gradinariu@gmail.com
* @pluginName: myPlugin
* @description: a jquery plugin that does something
* @usage:
*
* //initialization
* $('selector').myPlugin(options);
@magnetikonline
magnetikonline / README.md
Last active March 14, 2024 22:48
IE 7/8/9/10/11 Virtual machines from Microsoft - Linux w/VirtualBox installation notes.
@hashar
hashar / android_bootstrap.sh
Created October 16, 2012 15:55
shell script to install Android SDK from CLI
#!/bin/bash
ANDROID_ARCHIVE="android-sdk_r20.0.3-linux.tgz"
ANDROID_URL="http://dl.google.com/android/$ANDROID_ARCHIVE"
BASE_DIR="/opt/androidsdk"
ANDROID_BIN="$BASE_DIR/android-sdk-linux/tools/android"
ANDROID_VERSIONS="android-8,android-10"
### Pre checks ########
@coolaj86
coolaj86 / how-to-publish-to-npm.md
Last active April 2, 2024 20:18
How to publish packages to NPM

Getting Started with NPM (as a developer)

As easy as 1, 2, 3!

Updated:

  • Aug, 08, 2022 update config docs for npm 8+
  • Jul 27, 2021 add private scopes
  • Jul 22, 2021 add dist tags
  • Jun 20, 2021 update for --access=public
  • Sep 07, 2020 update docs for npm version