Skip to content

Instantly share code, notes, and snippets.

View Gummibeer's full-sized avatar
🐼
beary busy

Tom Herrmann Gummibeer

🐼
beary busy
View GitHub Profile
@Gummibeer
Gummibeer / comments.php
Created May 22, 2014 11:03
Hueman new Features
<?php if ( post_password_required() ) { return; } ?>
<section id="comments" class="themeform">
<?php if ( have_comments() ) : global $wp_query; ?>
<h3 class="heading"><?php comments_number( __( 'No Responses', 'hueman' ), __( '1 Response', 'hueman' ), __( '% Responses', 'hueman' ) ); ?></h3>
<ul class="comment-tabs group">
<li class="active"><a href="#commentlist-container"><i class="fa fa-comments-o"></i><?php _e( 'Comments', 'hueman' ); ?><span><?php echo count($wp_query->comments_by_type['comment']); ?></span></a></li>
<?php
/**
* Social plugin for Pico CMS
* Adds social media buttons to posts and pages
*
* @author Narcis Radu
* @link http://narcisradu.ro
* @license http://opensource.org/licenses/MIT
*
* @author Tom Witkowski
@Gummibeer
Gummibeer / pico_sitemap.php
Created October 7, 2014 15:33
Generate a sitemap.xml and HTML-Sitemap Twig-Var for Pico - https://github.com/Techn0tic/Pico_Sitemap
<?php
/**
* Generate an xml sitemap for Pico
*
* @author Dave Kinsella
* @link https://github.com/Techn0tic/Pico_Sitemap
* @license http://opensource.org/licenses/MIT
*
* @author Tom Witkowski
/*
File: init.sqf
Author: Tom Witkowski (Gummibeer)
URI: https://github.com/Gummibeer
*/
private[ "_skillLevel", "_enemySide", "_enemyMen", "_enemyVehicles", "_enemyMenDensities", "_enemyVehicleDensities", "_civPopulations", "_types", "_markers", "_name", "_sizeArray", "_sizeA", "_sizeB", "_size", "_position", "_type", "_enemyMenDensity", "_enemyVehicle", "_enemyVehicleDensity", "_civPopulation", "_marker", "_text" ];
_skillLevel = 1;
_enemySide = 2;
@Gummibeer
Gummibeer / material.less
Created January 9, 2017 14:12
All Google Material Design Colors from 50-900 as less variables
// https://material.google.com/style/color.html
@color-red-50: #FFEBEE;
@color-red-100: #FFCDD2;
@color-red-200: #EF9A9A;
@color-red-300: #E57373;
@color-red-400: #EF5350;
@color-red-500: #F44336;
@color-red-600: #E53935;
@color-red-700: #D32F2F;
@Gummibeer
Gummibeer / sort_colors.py
Last active February 7, 2017 10:46
Sort colors by HUE
import colorsys
def get_hsv(value):
if(not isinstance(value, str)):
value = value[1]
value = value.lstrip("#")
lv = len(value)
r, g, b = tuple(int(value[i:i + lv // 3], 16) for i in range(0, lv, lv // 3))
return colorsys.rgb_to_hsv(r, g, b)
_isSafePos = false;
_minDist = 250;
_building = objNull;
_itterations = 0;
_maxItterations = 5;
while {!_isSafePos && _itterations < _maxItterations} do {
_players = allPlayers - entities "HeadlessClient_F";
_alivePlayers = [];
_playerPositions = [];
CREATE DATABASE newuser_db;
CREATE USER 'newuser'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON `newuser\_%` . * TO 'newuser'@'localhost';
@Gummibeer
Gummibeer / single_committer.sh
Last active May 30, 2017 14:53
Send a single commit for every changed file
git status --porcelain | while read -r a; do if [[ $a == M* ]] ; then FILE=`echo "$a" | awk '{print $2}'`; git commit -m "[ISSUE] $FILE" $FILE; fi done
sudo apt-get install php7.1-zip php7.1-xml php7.1-imagick php7.1-gd php7.1-curl php7.1-mcrypt php7.1-mysql php7.1-geoip php7.1-sqlite3 php7.1-mbstring