Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Philipp Tempel philipptempel

🎯
Focusing
Block or report user

Report or block philipptempel

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@philipptempel
philipptempel / reservoir.feature-requests.md
Last active Jan 4, 2016
Reservoir - A module and package showcase/listing for FuelPHP
View reservoir.feature-requests.md
  • OAuth
    • GitHub
    • BitBucket
  • List modules and packages
  • A listing has properties (or metadata, to be more flexible) [* marks required fields] (see also sublime.wbond.net)
    • Name*
    • Description*
    • Type*
    • Author*
    • Project Page* (has docs, example, ...)
@philipptempel
philipptempel / text-example.text
Last active Jul 25, 2016
Markdown Test Example
View text-example.text
An h1 header
============
Paragraphs are separated by a blank line.
2nd paragraph. *Italic*, **bold**, `monospace`. Itemized lists
look like:
* this one
* that one
@philipptempel
philipptempel / HOWTO.mac-set-file-icon.md
Last active Mar 25, 2018
How to set an icon for a file type on Mac?
View HOWTO.mac-set-file-icon.md

Q: How to set an icon for some file types throughout the whole system?

For example, I have text files that ends with .scala extension and I want to associate an icon for that files through the whole system and for any newly created file of this extension.

Gisted from http://superuser.com/questions/178316/how-to-set-an-icon-for-a-file-type-on-mac

All credits go to the author of the accepted and top-voted answer by Daniel Beck

A: How to set an icon for a file type on Mac!

@philipptempel
philipptempel / jquery.highcharts.js
Created Jun 21, 2013
Quick-n-Dirty Highcharts.js
View jquery.highcharts.js
! function ($) {
$('#container').highcharts({
chart: {
},
title: {
text: 'Logarithmic axis demo'
},
xAxis: {
tickInterval: 1
@philipptempel
philipptempel / latex.this-page-intentionally-left-blank.tex
Created Mar 22, 2013
LaTeX: How to have "This page intentionally left blank"
View latex.this-page-intentionally-left-blank.tex
\documentclass[twoside]{scrreprt}
\makeatletter
\def\cleardoublepage{\clearpage%
\if@twoside
\ifodd\c@page\else
\vspace*{\fill}
\hfill
\begin{center}
View force-download.php
<?php
function force_download($filename = '', $data = '')
{
if ($filename === '' OR $data === '')
{
return FALSE;
}
elseif ($data === NULL)
{
@philipptempel
philipptempel / README.latex.everything-i-forget-about.md
Last active Feb 15, 2017
Everything I keep forgetting about LaTex (and you probably, too)
View README.latex.everything-i-forget-about.md

Everything I Forget about LaTeX

Tabular

Row Spacing

If you want to change the row spacing globally (or locally for the whole tabular), use:

\renewcommand{\arraystretch}{1.5}
@philipptempel
philipptempel / README.git.commands-you-always-forget.md
Created Feb 13, 2013
Readme: Some git commands that you always forget
View README.git.commands-you-always-forget.md

Git commands

This is a collection of git commands I tend to need from time to time but never remember them. That's why I keep them here so I can access them whenever I need to :)

Completely remove a file/folder from history

If you ever add a file/folder to a branch that you don't want to have there (because it's too large or because it contains sensitive data like passwords etc.), you can make git forget about the file/folder completely, i.e., even the history won't remember the file.

# Remove all paths passed from the history of the repo
git filter-branch --index-filter "git rm -rf --cached --ignore-unmatch <FILES>" HEAD
View README.icf-doc.icf-model.md

README

This is a work-in-progress class-documentation for the ICF_Model which can be found here.

Doc: ICF_Model

This is a document to better understand the power of ICF_Model and its database queries. ICF_Model is a CRUD-type model, therefore, this documentation will be separated into the CRUD operations

View php.mobile_detector.php
<?php
/*
* Lightweight detector of mobile devices, OSs & browsers
* Copyright 2012 Túbal Martín (email: tubalmartin@gmail.com)
* License: GPL2
*/
if ( ! function_exists('mobile_detector') )
{
You can’t perform that action at this time.