Skip to content

Instantly share code, notes, and snippets.

View arthurschreiber's full-sized avatar

Arthur Schreiber arthurschreiber

View GitHub Profile
require 'rugged'
repo = Rugged::Repository.init_at('./test-repo')
index = repo.index
base_commit_options = {
author: { name: "Matt", email: "matt@test.com" },
committer: { name: "Matt", email: "matt@test.com" },
update_ref: 'HEAD'
if ($status == 1) {
echo 'es geht mir gut'
}
elseif ($status == 10) {
echo 'es geht mir nicht gut'
}
else {
echo 'es geht mir solala'
}
###
Creates a new bucket for a user using the given parameters (if not already above the user's limit)
@param {Object} user the document of the authenticated user
@param {String} name to be used for the bucket
@param {Number} limit to be used for the bucket (in Byte)
@param {Function} callback gets two parameters - error object (if an error occured) and the new bucket document if successful.
@api public
###
###
Creates a new bucket for a user using the given parameters (if not already above the user's limit)
@param {Object} user the document of the authenticated user
@param {String} name to be used for the bucket
@param {Number} limit to be used for the bucket (in Byte)
@param {Function} callback gets two parameters - error object (if an error occured) and the new bucket document if successful.
@api public
###
[CONCEPTS FOR BOOK A]:
[
(*, w, nein, 0, keiner, *, *),
(*, *, *, *, keiner, *, 1000-1999),
(*, *, ja, *, keiner, *, *),
(*, *, *, *, keiner, *, 2000-2999),
(36-49, *, *, *, keiner, *, *)
]
[CONCEPTS FOR BOOK B]:
---------------------------------------------------
Target: "Buch_C"
{
(null,"m",null,null,null,null,"3000-3999",null);
("25-35",null,null,null,"Realschule",null,null,null);
(null,null,null,null,"Hochschule",null,null,null);
("36-49",null,null,null,"Gymnasium",null,null,null);
(null,null,null,null,"Promotion",null,null,null);
("36-49",null,null,null,"Realschule",null,null,null);
(null,null,null,null,null,null,"5000 und mehr",null);
<?php
/**
* @package WordPress
* @subpackage Default_Theme
*/
?>
<!DOCTYPE html>
<html lang="de">
<head>
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
# Remove the CSRF Check for Ajax Requests.
module ActionController
module RequestForgeryProtection
def verified_request?
!protect_against_forgery? ||
request.method == :get ||
request.xhr? ||
!verifiable_request_format? ||
form_authenticity_token == params[request_forgery_protection_token]
end
require "Win32API"
module Windows
module Processes
EnumProcesses = Win32API.new("psapi","EnumProcesses",['P','L','P'],'L')
OpenProcess = Win32API.new("kernel32","OpenProcess",['L','L','L'],'L')
CloseHandle = Win32API.new("kernel32","CloseHandle",['L'],'L')
EnumProcessModules = Win32API.new("psapi","EnumProcessModules",['L','P','L','P'],'L')
GetModuleBaseName = Win32API.new("psapi","GetModuleBaseName",['L','L','P','L'],'L')
GetModuleFileNameEx = Win32API.new("psapi","GetModuleFileNameEx",['L','L','P','L'],'L')
autostart = TkVariable.new
autostart_ja_check = TkRadioButton.new(@options_window) do
text 'Ja'
variable autostart
value 'ja'
background 'royalblue'
activebackground 'royalblue'
font TkFont.new('Comic 9 bold')
anchor 'w'