Skip to content

Instantly share code, notes, and snippets.

Avatar

Georg Meyer scho

View GitHub Profile
@scho
scho / BindingExtensions.cs
Last active Oct 18, 2022
Unity UIToolkit Runtime Binding Extension
View BindingExtensions.cs
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 Jul 16, 2018
LocalDynamoDbRule failure stacktrace
View stacktrace.txt
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 Mar 5, 2014
.gitignore for Visual Studio projects
View .gitignore
# 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 Aug 2, 2012
Initializer for cancan within Netzke in order to use cancan helpers
View cancan.rb
# 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 Aug 2, 2012
Gemfile.lock for an issue #43 in netzke-core
View Gemfile.lock
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 Aug 2, 2012
Authentication with Rails 3.2.7 using devise 2.0.4, netzke-core 0.7.6 and Ext JS 4.0.2
View login.rb
# 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 Aug 1, 2012
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
View paging_tree_store.js
// 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