Skip to content

Instantly share code, notes, and snippets.

import datetime as dt
def wikipedia_partition(list_set, left_end_index, right_end_index, pivot_index):
pivot_val = list_set[pivot_index]
list_set[pivot_index], list_set[right_end_index] = list_set[right_end_index], list_set[pivot_index]
temp_index = left_end_index
for i in range(left_end_index, right_end_index-1):
if pivot_val > list_set[i]:
list_set[temp_index], list_set[i] = list_set[i], list_set[temp_index]
temp_index += 1
RewriteEngine on
RewriteCond %{REQUEST_URI} ^/gewünschteurl/ [OR]
RewriteCond %{HTTP_HOST} ^dieServerBasisAdresse.de$
RewriteRule ^(.*)$ http://dieServerBasisAdresse.de/diehtmldatei.html [R,L]
einfügen(p):
kind = wurzelknoten
do {
__knoten = kind
__if (p <= wert(knoten)) kind = leftChild(knoten)
__else kind = rightChild(knoten)
} while (hasChild(kind))
if (p <= wert(kind)) {
using UnityEngine;
using System.Collections;
public class targetControl : MonoBehaviour
{
public bool targetControlEnabled = true;
public bool boost = false;
public int boostCount;
// Use this for initialization
void Start ()
using UnityEngine;
public class KeyboardIsometric : MonoBehaviour
{
public float speed = 29.0F;
public float rotationSpeed = 100.0F;
public GameObject target;
public bool isController = false;
void Update() {
#include <iostream>
#include <string>
using namespace std;
void fac(int n)
{
int ret = 1;
for(int i=1; i < (n+1); i++)
{
// Blatt12.2.cpp : Definiert den Einstiegspunkt für die Konsolenanwendung.
//
#include "stdafx.h" // unter linux einfach entfernen
#include <iostream>
#include <string>
#include <algorithm>
#include <vector>
#include <utility>
#include <set>
@daemonfire300
daemonfire300 / bla.cpp
Last active December 11, 2015 22:59 — forked from anonymous/bla.cpp
#include <string>
using namespace std;
#ifndef MEDIUM_H
#define MEDIUM_H
class Medium
{
public:
string titel;
bool ausleihstatus;
#include <iostream>
using namespace std;
int a;
int b;
void max(int a, int b){
if(a > b){
cout << "a größer b" << endl;
}
/*
*
* Super Duper Copyright by Jul Foi, do not cropy
*/
// win_visdata.cpp : Definiert den Einstiegspunkt für die Konsolenanwendung.
//
#include "stdafx.h"