Skip to content

Instantly share code, notes, and snippets.

View jbasinger's full-sized avatar
🔮
One sec

Justin Basinger jbasinger

🔮
One sec
View GitHub Profile
@jbasinger
jbasinger / manifestsnippet.xml
Created August 12, 2015 00:26
Capturing Android Intents
<intent-filter>
<action android:name="android.intent.action.SEND" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="text/plain" />
</intent-filter>
@jbasinger
jbasinger / ReversePlugin.java
Created August 29, 2015 18:39
ReversePlugin Embeded Files
package com.sciencevikinglabs.reverseplugin;
import org.apache.cordova.CordovaWebView;
import org.apache.cordova.CallbackContext;
import org.apache.cordova.CordovaPlugin;
import org.apache.cordova.CordovaInterface;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
@jbasinger
jbasinger / app.js
Last active February 20, 2016 13:29
Slide Wizard Gists
.config(function($stateProvider, $urlRouterProvider) {
$stateProvider
.state('app', {
url: '/app',
abstract: true,
templateUrl: 'templates/menu.html',
controller: 'AppCtrl'
})
@jbasinger
jbasinger / controllerjs
Created September 28, 2015 01:30
SVL Popout Buttons Blog Snippets
angular.module('starter.controllers', ['svl.popout'])
.controller('MainCtrl', function($scope, $ionicPopover,svlPopoutDelegate) {
$scope.toggled = false;
$scope.radOffset = -Math.PI/4;
$scope.radStep = Math.PI/8;
$scope.showPopout = function($event){
if ($scope.toggled){
svlPopoutDelegate.hide();
angular.module('constants',[])
.constant('ENV',{
name: 'dev',
baseUrl: 'http://dev.whatever.com',
magicKey: '123-456-789',
someOtherThing: {
id: 1,
arrayOfSomeStuff: [1,2,3,4,5]
}
});
@jbasinger
jbasinger / files.js
Last active October 20, 2015 01:23
Karma config
files: [
'../lib/ionic/js/ionic.bundle.js',
'../lib/angular-mocks/angular-mocks.js',
'../js/**.js',
'./**.spec.js'
],
@jbasinger
jbasinger / index-worker.js
Last active October 30, 2015 00:26
Remote Control Firefox!
var pageWorkers = require("sdk/page-worker");
pageWorker = pageWorkers.Page({
contentURL: self.data.url("worker.html"),
contentScriptFile: [self.data.url('jquery-2.1.4.min.js'),self.data.url('worker.js')],
contentScriptWhen: "ready"
});
pageWorker.port.on('command', function(cmd){
@jbasinger
jbasinger / csharp.cs
Last active November 13, 2015 22:10
Platform Specifics
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading; //Had to add this.
using System.Threading.Tasks;
namespace ConsoleApplication1 {
class Program {
static void Main(string[] args) {
@jbasinger
jbasinger / iconextractor.cs
Last active October 29, 2023 14:39
Icon Extraction in Windows using NodeJS
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Threading;
using System.Drawing;
using System.IO;
using Newtonsoft.Json;
@jbasinger
jbasinger / main.html
Last active January 21, 2016 23:53
Meetup 1/21/16 - Checkpoint 1
<!doctype html>
<html ng-app="editor">
<head>
<link rel="stylesheet" href="bower_components/bootstrap/dist/css/bootstrap.css"/>
<script src="bower_components/ace-builds/src-min-noconflict/ace.js"></script>
<script src="bower_components/angular/angular.js"></script>
<script src="bower_components/angular-ui-ace/ui-ace.js"></script>
<script src="libs/ui-bootstrap-tpls-1.1.0.min.js"></script>