Skip to content

Instantly share code, notes, and snippets.

View joeauty's full-sized avatar

Joe Auty joeauty

  • FlipGive, MedStack, Thinkdata Works, nanoPay, Sigstr, DataSprocket, NetMusician
View GitHub Profile
[ 0.000000] Common.Filesystem <Warning> common/file_util.cpp:CreateFullPath:200: path exists /Users/joe/.config/citra-emu/qt-config.ini
[ 7.510798] Frontend <Info> citra_qt/main.cpp:BootGame:373: Citra starting...
[ 8.169222] Loader <Info> core/loader/loader.cpp:GetLoader:142: Loading file /Users/joe/Downloads/Collection of 250 decrypted 3DS ROMs for Citra Emulator/0487 - Legend of Zelda, The - A Link Between Worlds (Europe) (En,Fr,De,Es,It) Decrypted.3ds as NCSD...
[ 8.169249] Loader <Warning> core/loader/ncch.cpp:LoadExeFS:256: Only loading the first (bootable) NCCH within the NCSD file!
[ 8.169478] Loader <Info> core/loader/ncch.cpp:LoadExeFS:280: Name: Zelda
[ 8.169495] Loader <Info> core/loader/ncch.cpp:LoadExeFS:281: Program ID: 00040000000EC400
[ 8.177735] Service.FS <Info> core/file_sys/archive_sdmc.cpp:ArchiveFactory_SDMC:309: Directory /Users/joe/.local/share/citra-emu/sdmc/ set as SDMC.
[ 8.177758] Common.Filesystem <Warning> common/file_util.
{"data":{"userdata":[{"id":"549507ccd2cc1986d4000005","created_at":"2012-08-28T18:59:46.000Z","updated_at":null,"name":"doggy","pic":"","width":0,"height":0,"weight":0,"colour":0,"condition":0,"price":44,"description":"&lt;p&gt;\n asdf&lt;/p&gt;","listorder":370,"availability":null},{"id":"549507ccd2cc1986d4000006","created_at":"2012-08-28T19:02:25.000Z","updated_at":"2013-01-07T14:11:00.000Z","name":"cat","pic":"","width":0,"height":0,"weight":0,"colour":0,"condition":0,"price":44,"description":"&lt;p&gt;\n adsf&lt;/p&gt;","listorder":360,"availability":null},{"id":"549507ccd2cc1986d4000007","created_at":"2012-08-28T19:19:43.000Z","updated_at":null,"name":"monkey","pic":"","width":0,"height":0,"weight":0,"colour":0,"condition":0,"price":3,"description":"&lt;p&gt;\n asdf&lt;/p&gt;","listorder":800,"availability":null},{"id":"549507ccd2cc1986d4000008","created_at":"2012-08-28T19:30:46.000Z","updated_at":null,"name":"unicorn","pic":"","width":0,"height":0,"weight":0,"colour":0,"condition":0,"price":32,"descript
'use strict';
/**
* @ngdoc function
* @name datasprocketApp.controller:MainCtrl
* @description
* # MainCtrl
* Controller of the datasprocketApp
*/
angular.module('datasprocketApp')
<h3>Edit table {{selectedtable.tablename}}</h3>
<div ng-repeat="thisrow in userdata" class="col-lg-9 col-md-9">
<div ng-repeat="(key, value) in schema" class="row">
<!-- text -->
<div ng-if="compareField(value,'text')">
<input type="text" name="{{key}}" ng-model="thisrow[key]" class="form-control">
</div>
</div>
</div>
@joeauty
joeauty / gist:1085507
Created July 15, 2011 20:37
delay execution until custom event
if (typeof webkit.localjsloaded == "undefined") {
// local JS hasn't loaded yet, wait until it has
webkit.Y.Global.on('localjs:init', function() {
webkit.loadContent(page)
});
return;
}
@joeauty
joeauty / gist:1085498
Created July 15, 2011 20:33
webkitinit.js
// for controlling YUI lazy loading caching
var moduleRevision = 1;
var configObj = {
modules: {
'webkit': {
fullpath: '/nm_webkit/libs/webkit.js?wk=' + moduleRevision
},
'prototype': {
fullpath: 'https://ajax.googleapis.com/ajax/libs/prototype/1.6.1.0/prototype.js?wk=' + moduleRevision
this.cacheset = function(owner, datarequest, object) {
// assigns object to webkitcache
YUI().use('cache', 'node', function(Y) {
if (!webkit.wkcache) {
webkit.wkcache = new Y.Cache({max:10});
}
if (Y.one('#' + object)) {
// cache request sent as dom ID rather than node object
object = Y.one('#' + object);
var webkitcache = $H();
this.cacheset = function(owner, datarequest, object) {
// assigns object to webkitcache global hash
if ($(object)) {
// part of DOM, create clone
webkitcache.set(owner + '_' + datarequest, object.cloneNode(true));
}
else {
this.cacheset = function(owner, datarequest, object) {
// assigns object to webkitcache
YUI().use('cache', function(Y) {
if (!webkit.wkcache) {
webkit.wkcache = new Y.Cache({max:10});
}
if (webkit.Y.one('#' + object)) {
YUI().log('set cache based on domID');
// part of DOM, create clone
#progressbars {
width:300px;
}
.yui3-progressbar {
margin-bottom:3px;
border: 2px solid #c4c4c4;
border-radius:5px;
-moz-border-radius: 5px;
-webkit-border-radius:5px;