Skip to content

Instantly share code, notes, and snippets.

---
layout: post
title: Sample Post
description: "Just about everything you'll need to style in the theme: headings, paragraphs, blockquotes, tables, code blocks, and more."
modified: 2016-12-02
tags: [sample post]
categories: [intro]
image:
feature: feature.jpg
credit: dargadgetz
@bitsmuggler
bitsmuggler / bitbucket-pipelines.yml
Last active November 13, 2016 10:47
Beispielhaftes bitbucket-pipelines
This is a sample build configuration for Maven.
# Check our guides at https://confluence.atlassian.com/x/VYk8Lw for more examples.
# Only use spaces to indent your .yml configuration.
# -----
# You can specify a custom docker image from Docker Hub as your build environment.
image: paroos/maven-nodejs-bower-grunt-npmresolver-ts-sass
pipelines:
default:
- step:
@bitsmuggler
bitsmuggler / TypescriptHints.ts
Last active November 1, 2016 14:34
Typescript Hints
//#1: Creating members via constructor
class Car {
constructor(public engine: string) {
}
}
//#2: Structure of a typescript class
//Class
# Clear the folder first - please use this carefully
rm -rf $REPO_NAME
# clone the reposotory
git clone --bare $ORIGIN_URL
# add a remote repository
cd $REPO_NAME
git remote add --mirror=fetch repo1 $REPO1_URL
# update the local copy from the first repository
@bitsmuggler
bitsmuggler / codesnippet.java
Created March 3, 2016 11:41
Code-Snippet für das Auswerten des Status eines RadioButtons
private JRadioButton radioButtonOption1;
if(this.radioButtonOption1.isSelected()) {
//Radio Button mit der Option 1 ist selektiert.
}
@bitsmuggler
bitsmuggler / codesnippet.java
Created March 3, 2016 08:16
Code-Snippet für Aufgabe: Text eines JTextEdit in ein double konvertieren
//Breite 'Text' vom Textfeld holen
String textWidth = this.textFieldWidth.getText();
//Breite 'Text' (String) in ein Double konvertieren.
double width = Double.parseDouble(textWidth);
@bitsmuggler
bitsmuggler / Solution.md
Last active March 2, 2016 15:49
Einstieg Java-Programmierung - Lösungen zum Teil Kontrolle zur Theorie
@bitsmuggler
bitsmuggler / HelloWorld.java
Created March 1, 2016 14:09
HelloWorld Klasse für Java-Einstieg
import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
public class HelloWorld {
private JButton buttonOK;
private JPanel panel1;
public HelloWorld() {
@bitsmuggler
bitsmuggler / HelloWorld.java
Created February 29, 2016 14:29
Run Java from console
/**
* Hello World Klasse.
*/
public class HelloWorld {
/**
* Eintrittspunkt von deiner Anwendung.
* @param args Argument, die Du deiner Anwendung übergeben kannst.
*/
public static void main(String [] args) {

Angular2 + JSPM cheat sheet

First time setup

  • install jspm beta: npm install -g jspm@beta
  • set up your project: jspm init
  • install dependencies: jspm install angular2 reflect-metadata zone.js es6-shim

This will create a jspm_packages folder, and a config.js file.

Open the config.js file - this file manages options for the System.js loader - tweak it as appropriate