Skip to content

Instantly share code, notes, and snippets.

Avatar
🐼
beary busy

Tom Witkowski Gummibeer

🐼
beary busy
View GitHub Profile
@Gummibeer
Gummibeer / comments.php
Created May 22, 2014
Hueman new Features
View comments.php
<?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>
View pico_share.php
<?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 Oct 7, 2014
Generate a sitemap.xml and HTML-Sitemap Twig-Var for Pico - https://github.com/Techn0tic/Pico_Sitemap
View pico_sitemap.php
<?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
View init.sqf
/*
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;
View create_user.sql
CREATE DATABASE newuser_db;
CREATE USER 'newuser'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON `newuser\_%` . * TO 'newuser'@'localhost';
@Gummibeer
Gummibeer / material.less
Created Jan 9, 2017
All Google Material Design Colors from 50-900 as less variables
View material.less
// 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 Feb 7, 2017
Sort colors by HUE
View sort_colors.py
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)
View find_building.sqf
_isSafePos = false;
_minDist = 250;
_building = objNull;
_itterations = 0;
_maxItterations = 5;
while {!_isSafePos && _itterations < _maxItterations} do {
_players = allPlayers - entities "HeadlessClient_F";
_alivePlayers = [];
_playerPositions = [];
@Gummibeer
Gummibeer / single_committer.sh
Last active May 30, 2017
Send a single commit for every changed file
View single_committer.sh
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
View gist:6a7f08168079c7cdd81bca73731245ed
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