Skip to content

Instantly share code, notes, and snippets.

Alexander Wolf AWolf81

Block or report user

Report or block AWolf81

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@AWolf81
AWolf81 / settings.py
Last active Aug 29, 2015
ColorPicker type for Kivy Settings
View settings.py
# Added Class SettingColorPicker on line 501ff
# and modified SettingsApp() see line 1306
# source from https://github.com/kivy/kivy/blob/master/kivy/uix/settings.py
'''
Settings
========
.. versionadded:: 1.0.7
@AWolf81
AWolf81 / demoborder.py
Last active Dec 3, 2018
Demo app for BorderBehavior
View demoborder.py
from kivy.app import App
from kivy.lang import Builder
from kivy.uix.widget import Widget
from kivy.uix.boxlayout import BoxLayout
from kivy.properties import ObjectProperty, ReferenceListProperty
from kivy.properties import NumericProperty
from kivy.graphics import Line, Color
Builder.load_string("""
@AWolf81
AWolf81 / DemoSettingsTPanel.py
Last active Oct 24, 2017
Settingspage inside of a TabbedPanel
View DemoSettingsTPanel.py
from kivy.config import Config
Config.set('graphics', 'width', '320')
Config.set('graphics', 'height', '480')
from kivy.app import App
from kivy.lang import Builder
from kivy.uix.widget import Widget
from kivy.uix.settings import SettingsWithNoMenu
from kivy.properties import StringProperty
@AWolf81
AWolf81 / SpringMVCWebConfig.java
Last active Jun 2, 2019
Spring boot configuration file (annotation-based) - configures localization
View SpringMVCWebConfig.java
package mongodbdemo.config;
import java.util.Locale;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.support.ReloadableResourceBundleMessageSource;
@AWolf81
AWolf81 / index.coffee
Created Jul 12, 2015
Workaround for angular-template-brunch with-out CommonJs
View index.coffee
module.exports = class NgTemplatesCompiler
brunchPlugin: yes
type: 'template'
extension: 'js'
# Add to this list of markup to wrap for AngularJS
pattern: /\.(html|jade|eco|hbs|handlebars)$/
constructor: (config) ->
@module = config.plugins?.ng_templates?.module or 'appTemplates'
@AWolf81
AWolf81 / index.js
Created Sep 24, 2015
Connect serve static example
View index.js
var connect = require('connect'),
http = require('http'),
serveStatic = require('serve-static'),
app = connect(),
server;
app.use(serveStatic("./angularjs"));
server = http.createServer(app);
@AWolf81
AWolf81 / app.html
Last active Sep 26, 2017
Firebase chat example with private messages (only visible for owner)
View app.html
<!-- created for this SO
http://stackoverflow.com/questions/34491935/how-to-combine-two-firebasearrays-into-one
How to setup this fiddle?
1. Change FBURL constant to your app
2. Create a user for password provider in firebase dashboard
3. Enter credentials in $authWithPassword
-->
<div ng-app="myApp" ng-controller="ChatCtrl as chatCtrl">
@AWolf81
AWolf81 / ru.properties
Last active Apr 30, 2016
Localization for local linkk addon - Russian language
View ru.properties
# ------------------ preferences ------------------------------
whitelist_title = URL-адреса, добавленные в White List, будут кликабельными
whitelist_description = По-умолчанию кликабельны все ссылки, которые распознает дополнение, но вы можете добавить нераспознанные URL-адреса вручную, разделяя их пробелом. Допускается использование подстановочных знаков, например, *.trello.com
enableExecutables_title = Разрешить ссылки на исполняемые файлы
enableExecutables_description = Если включить эту опцию, URL-адреса на исполняемые файлы станут кликабельными. Будьте осторожны, это не всегда безопасно!
enableLinkIcons_title = Отображать иконки возле ссылок
enableLinkIcons_description = Если включить эту опцию, то напротив каждой локальной ссылки будет отображаться иконка
@AWolf81
AWolf81 / info.md
Created May 16, 2016
Example Gist for angular-gist directive
View info.md
@AWolf81
AWolf81 / index.html
Last active May 17, 2016
Example fiddle source
View index.html
html file
<h1>Hello world</h1>
You can’t perform that action at this time.