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 / 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.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 / test.js
Created May 5, 2019
BoostNote linting test
View test.js
import React from 'react'
import ReactDOM from 'react-dom'
// import PropTypes from 'prop-types'
// Note: Remove the next line to test linting warnings
/* eslint-disable */
// Test prefer-const --> rule working with standardx as it respects .eslintrc
export const preferCondtDemo = function () {
let notVariable = 'demo'
return notVariable
@AWolf81
AWolf81 / Profile-20190425T231328_ProjectSettingsModal_opening_and_closing_animation.json
Created Apr 25, 2019
Chrome profile - Guppy sc-v4 branch - ProjectSettingsModal performance
View Profile-20190425T231328_ProjectSettingsModal_opening_and_closing_animation.json
[{"pid":12100,"tid":22488,"ts":75204026765,"ph":"X","cat":"toplevel","name":"MessageLoop::RunTask","args":{"src_file":"../../mojo/public/cpp/system/simple_watcher.cc","src_func":"Notify"},"dur":84,"tdur":83,"tts":78152265},
{"pid":12100,"tid":22488,"ts":75204114424,"ph":"X","cat":"toplevel","name":"MessageLoop::RunTask","args":{"src_file":"../../gpu/ipc/client/gpu_channel_host.cc","src_func":"Send"},"dur":35,"tdur":32,"tts":78152624},
{"pid":12100,"tid":22488,"ts":75204114464,"ph":"X","cat":"toplevel","name":"MessageLoop::RunTask","args":{"src_file":"../../gpu/ipc/client/gpu_channel_host.cc","src_func":"Send"},"dur":10,"tdur":10,"tts":78152661},
{"pid":12100,"tid":22488,"ts":75204114613,"ph":"X","cat":"ipc,toplevel","name":"ChannelMojo::OnMessageReceived","args":{"class":65535,"line":65520},"dur":6,"tdur":6,"tts":78152716},
{"pid":12100,"tid":22488,"ts":75204114904,"ph":"X","cat":"toplevel","name":"MessageLoop::RunTask","args":{"src_file":"../../gpu/ipc/client/gpu_channel_host.cc","src_func":"Send"},"dur":26,
@AWolf81
AWolf81 / app.js
Created Dec 18, 2018
Basic Express server example
View app.js
const express = require('express');
const app = express();
app.get('/', (req, res) => {
res.send('An alligator approaches!');
});
app.listen(3000, () => console.log('Gator app listening on port 3000!'));
@AWolf81
AWolf81 / index.html
Created Dec 14, 2018
Electron Fiddle Gist
View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Hello World!</title>
</head>
<body>
<h1>Hello World!</h1>
<button id="test">Click me</button>
<!-- All of the Node.js APIs are available in this renderer process. -->
@AWolf81
AWolf81 / index.html
Created Dec 14, 2018
Electron Fiddle Gist
View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Hello World!</title>
</head>
<body>
<h1>Hello World!</h1>
<button id="test">Click me</button>
<!-- All of the Node.js APIs are available in this renderer process. -->
@AWolf81
AWolf81 / index.html
Created Dec 14, 2018
Electron Fiddle Gist
View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Hello World!</title>
</head>
<body>
<h1>Hello World!</h1>
<button id="test">Click me</button>
<!-- All of the Node.js APIs are available in this renderer process. -->
@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 / Summary.js
Created Nov 8, 2018
Part of summay pane (Next.js copy)
View Summary.js
details = (
<Fragment>
<Paragraph>
<strong>Next.js</strong>
</Paragraph>
<Paragraph>
Next.js is a lightweight framework for static and
server-rendered applications.
</Paragraph>
<Paragraph>
You can’t perform that action at this time.