This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git_branch() { | |
echo -n ' => (' && git branch 2>/dev/null | grep '^*' | colrm 1 2 | tr -d '\n' && echo -n ')]' | |
} | |
git_project_name() { | |
echo -n '[' && git config --local remote.origin.url|sed -n 's#.*/\([^.]*\)\.git#\1#p' | tr -d '\n' | |
} | |
git_string() { | |
echo -n '' && git_project_name && git_branch |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Quadrat() { | |
int x; | |
int y; | |
Quardrat() { | |
x = 2; | |
y = 5; | |
} | |
// pseudocode (das möchte ich machen) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Quadrat() { | |
int x; | |
int y; | |
Quardrat() { | |
x = 2; | |
y = 5; | |
} | |
// pseudocode (das möchte ich machen) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react'; | |
import { Link } from 'react-router-dom'; | |
import ReactTable from 'react-table'; | |
import 'react-table/react-table.css'; | |
import { fetchJson } from '../common/Backend' | |
const FILTER_ATTRIBUTES = ['ced1', 'ced2']; | |
export default class BookmarksTable extends React.Component { | |
constructor(props) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
arr = [{ | |
cedattribute: 1, | |
svenattrubute: 2 | |
}, { | |
cedattribute: 3, | |
svenattrubute: 4 | |
}]; | |
function transformObj(objectOld) { | |
var newObj = {}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// pseudocode of doom | |
function login(username, pw, callback) { | |
$.ajax(url).success(function(response) { | |
if(response.code != 404 && response.code == 200) { // redundant, such dir was aus | |
callback(JSON.parse(response.data)); | |
} | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class KlasseA { | |
private KlasseB b; | |
} | |
public class KlasseB { | |
private KlasseA a; | |
} | |
// @test | |
final KlasseB b1 = new KlasseB(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var wie_komm_ich_da_bloß = "rein"; | |
for (var x = 0; x < 3; x++) { | |
console.log("Oh mein Goot, dieser Himmel"); | |
switch(x) | |
case 1: | |
console.log("Wo zur Hölle soll das sein"); | |
case 2: | |
console.log("Wie komm ich da bloß rein"); | |
default: | |
console.log("Wo zum Teufel soll das sein"); |