Skip to content

Instantly share code, notes, and snippets.

View LarsKoelpin's full-sized avatar
🎯
Focusing

Lars Kölpin-Freese LarsKoelpin

🎯
Focusing
View GitHub Profile
@LarsKoelpin
LarsKoelpin / arch-linux-install-deepin.md
Last active February 1, 2020 11:09 — forked from kylemanna/arch-linux-install.md
Install Instructions Arch Linux with deepin
192.168.1.100:3000 - 0A719B00ADD03DADBC7D8424761B6865D4C80671 - 5.96233 e46
192.168.1.108:3000 - 0FED9BC1FF17256C0C97FF883B4C918F6C449D1C - 9.09337 e46
192.168.1.204:3000 - 5F7E58A93A2852764F3CA8A882959142C147A67C - 5.451717 e47
192.168.1.105:3000 - 683404C6A63DF58230E90466CFB5F7F0C2BD38A6 - 5.94895 e47
192.168.1.110:3000 - 704E91E60A2E4E3A9396C9C0A490B90F9B816C31 - 6.411159 e47
192.168.1.142:3000 - 723E64E216FFCD23B57DB153734D23F75F59A137 - 6.52216 e47
192.168.1.178:3000 - 7C58333AE1B64F0ABF1B96DE0996A9788A789232 - 7.09881 e47
192.168.1.173:3000 - BFE46917FB60CB86CD486FC3C1F909CAEE178F8D - 1.0955 e48
192.168.1.111:3000 - D33E6179718AB32D1AC7C32B40ED0807776713A1 - 1.20598 e48
@LarsKoelpin
LarsKoelpin / min.txt
Created October 25, 2017 10:46
IT Controlling
VL 1 Folie 26
import * as Immutable from 'immutable'
interface ShapedMap<T> extends Immutable.Map<any, any> {
get<K extends keyof T>(k: K): T[K]
set<K extends keyof T>(k: K, value: T[K])
}
export const ShapedMap= function<T>(obj: T) {
return Immutable.Map(obj) as ShapedMap<T>
};
<head>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<script src="https://code.jquery.com/jquery-2.2.4.min.js" integrity="sha256-BbhdlvQf/xTY9gja0Dq3HiwQF8LaCRTXxZKRutelT44="
crossorigin="anonymous"></script>
<style>
#drop {
color: #2c3e50;
margin: 0 auto;
// Available variables which can be used inside of strings.
// ${workspaceRoot}: the root folder of the team
// ${file}: the current opened file
// ${fileBasename}: the current opened file's basename
// ${fileDirname}: the current opened file's dirname
// ${fileExtname}: the current opened file's extension
// ${cwd}: the current working directory of the spawned process
// A task runner that calls a custom npm script that compiles the extension.
{
<?xml version="1.0"?>
<!DOCTYPE module PUBLIC
"-//Puppy Crawl//DTD Check Configuration 1.3//EN"
"http://www.puppycrawl.com/dtds/configuration_1_3.dtd">
<!--
Checkstyle configuration that checks the Google coding conventions from Google Java Style
that can be found at https://google.github.io/styleguide/javaguide.html.
Checkstyle is very configurable. Be sure to read the documentation at
# Jenkins with Docker integration for docker
FROM jenkins:latest
USER root
RUN apt-get update \
&& apt-get install -y lxc \
&& apt-get install -y sudo \
&& rm -rf /var/lib/apt/lists/* \
RUN echo "jenkins ALL=NOPASSWD: ALL" >> /etc/sudoers
export const UPLOAD_NONE = 'UPLOAD_NONE';
export const UPLOAD_STARTED = 'UPLOAD_STARTED';
export const UPLOAD_INVALID = 'UPLOAD_INVALID';
export const UPLOAD_SUCCESS = 'UPLOAD_SUCCESS';
export const UPLOAD_ERROR = 'UPLOAD_ERROR';
export function uploadFile(file) {
return (dispatch) => {
dispatch(uploadStart())
return uploadFile(file, ()=> {
function uploadFile(file, finish = () =>{}, error = ()=>{}) {
var xhr = new XMLHttpRequest();
xhr.upload.onprogress = function(e) {
var percentComplete = (e.loaded / e.total) * 100;
console.log('Uploaded ' + percentComplete + ' percentComplete');
};
xhr.onload = function() {
if (xhr.status == 200) {
console.log("SUC");