Skip to content

Instantly share code, notes, and snippets.

View scho's full-sized avatar

Georg Meyer scho

View GitHub Profile
@scho
scho / BindingExtensions.cs
Last active May 8, 2023 17:19
Unity UIToolkit Runtime Binding Extension
using System;
using System.Collections.Generic;
using System.Reflection;
using UnityEngine.UIElements;
namespace UI
{
public static class BindingExtensions
{
public static void Bind(this VisualElement element, object data)
@scho
scho / stacktrace.txt
Last active July 16, 2018 17:15
LocalDynamoDbRule failure stacktrace
Picked up _JAVA_OPTIONS: -Djava.net.preferIPv4Stack=true -Duser.country=DE -Duser.language=en -Dfile.encoding=ISO-8859-1
objc[40895]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdk/Contents/Home/bin/java (0x1095aa4c0) and /Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdk/Contents/Home/jre/lib/libinstrument.dylib (0x10adf54e0). One of the two will be used. Which one is undefined.
ERROR StatusLogger Log4j2 could not find a logging implementation. Please add log4j-core to the classpath. Using SimpleLogger to log to the console...
Jul 16, 2018 7:13:25 PM com.almworks.sqlite4java.Internal log
WARNING: [sqlite] cannot open DB[1]: com.almworks.sqlite4java.SQLiteException: [-91] cannot load library: com.almworks.sqlite4java.SQLiteException: [-91] sqlite4java cannot find native library
Jul 16, 2018 7:13:25 PM com.almworks.sqlite4java.Internal log
SEVERE: [sqlite] SQLiteQueue[]: error running job queue
com.almworks.sqlite4java.SQLiteException: [-91] cannot load library
@scho
scho / .gitignore
Created March 5, 2014 13:42
.gitignore for Visual Studio projects
# Build Folders (you can keep bin if you'd like, to store dlls and pdbs)
[Bb]in/
[Oo]bj/
# mstest test results
TestResults
## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.
@scho
scho / cancan.rb
Created August 2, 2012 14:20
Initializer for cancan within Netzke in order to use cancan helpers
# Initializer for cancan
#
# Extend Netzke::Base class in order to be able to include cancan helpers
class Netzke::Base
# cancan calls helper_method, which is present in any controller, but not in a netzke components
def self.helper_method(*args)
# Do nothing since we don't have a view layer in netzke components
end
@scho
scho / Gemfile.lock
Created August 2, 2012 08:26
Gemfile.lock for an issue #43 in netzke-core
GIT
remote: git://github.com/aaronjg/rsruby.git
revision: bb3fd2dbfee58aec6461a50fcc5f37d21b0c5d55
specs:
rsruby (0.5.1.1d)
GEM
remote: http://rubygems.org/
specs:
actionmailer (3.2.7)
@scho
scho / login.rb
Created August 2, 2012 07:00
Authentication with Rails 3.2.7 using devise 2.0.4, netzke-core 0.7.6 and Ext JS 4.0.2
# The Login component
# Lets user type in their credentials, so they can authenticate themselves
class Sessions::Login < Netzke::Base
# Set the EXT JS class
js_base_class 'Ext.Window'
# Configure the component
#
# @return [Hash]
@scho
scho / paging_tree_store.js
Created August 1, 2012 11:43
Netzke component implementation of Ext.tree.Panel with rails 3.2.7 using netzke-core/basepack 0.7.6 and Ext JS 4.0.2
// Extends Ext.data.TreeStore and adds paging to it
Ext.define('Ext.netzke.PagingTreeStore', {
extend: 'Ext.data.TreeStore',
alias: 'pagingtreestore',
currentPage: 1,
config:{
totalCount: null,
pageSize: null
},
// Load a specific Page