Skip to content

Instantly share code, notes, and snippets.

Robert Wildling rowild

  • Vienna
Block or report user

Report or block rowild

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
@josefglatz
josefglatz / PageLayoutViewDrawItem.php
Created Nov 8, 2014
TYPO3CMS tt_content_drawItem hook example (TYPOCMS 6.2)
View PageLayoutViewDrawItem.php
<?php
namespace J18\J18thmsimkup\Hooks;
/***************************************************************
* Copyright notice
*
* (c) 2014 GLATZ, Josef <jousch@gmail.com>
* All rights reserved
*
* This script is part of the TYPO3 project. The TYPO3 project is
* free software; you can redistribute it and/or modify
@cedmax
cedmax / LICENSE.txt
Last active Sep 25, 2015 — forked from 140bytes/LICENSE.txt
pub/sub custom events
View LICENSE.txt
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 cedmax <http://github.com/cedmax>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@oalders
oalders / graphicsmagick.rb
Created Nov 10, 2011
install Graphics::Magick via homebrew
View graphicsmagick.rb
require 'formula'
def ghostscript_fonts?
File.directory? "#{HOMEBREW_PREFIX}/share/ghostscript/fonts"
end
def ghostscript_srsly?
ARGV.include? '--with-ghostscript'
end
@rowild
rowild / css_image_replacement_expl.css
Last active Dec 16, 2015
CSS: Image Replacement
View css_image_replacement_expl.css
/* Text hiding without indent */
.ir {
border: 0;
font: 0/0 a;
text-shadow:none;
color: transparent;
background-color: transparent;
}
@doomhz
doomhz / jslogger_console.js
Created May 26, 2013
Replace the browser console with JSLogger.
View jslogger_console.js
if (jslogger) {
if(!window.console) window.console = {};
var methods = ["log", "debug", "warn", "info"];
for(var i=0;i<methods.length;i++){
console[methods[i]] = function(){jslogger.log.apply(jslogger, arguments);};
}
}
View Alphabet.html
{namespace cr = Tx_Catalogueraisonee_ViewHelpers}
<f:if condition="{entries}">
<f:then>
<f:for each="{entries}" as="entry" iteration="iterator">
<cr:alphabet string="{entry.title}" length="1" />
<f:if condition="{iterator.isFirst}">
View AlphabetViewHelper.php
<?php
/***************************************************************
* Copyright notice
*
* (c) 2012 Torsten Schrade <Torsten.Schrade@adwmainz.de>
*
* All rights reserved
*
* This script is part of the TYPO3 project. The TYPO3 project is
* free software; you can redistribute it and/or modify
@ichabodcole
ichabodcole / Web Audio API - Sound Fading
Created Jul 3, 2013
Reference for fading in and out sounds with the Web Audio API
View Web Audio API - Sound Fading
fadeTo: (value, fadeLength)->
fadeLength = fadeLength || @defaultfadeLength
currentTime = @ctx.currentTime
#time the fade should complete
fadeTime = currentTime + fadeLength
#set the start time
@masterGain.gain.setValueAtTime(@userVolume, currentTime)
@masterGain.gain.linearRampToValueAtTime(value, fadeTime)
fadeOut: (fadeLength)->
@dmitryd
dmitryd / checkboxes.txt
Created Jul 10, 2013
This example shows how to use the 'split' TypoScript function to create a set of checkboxes easily. There are three files total: general code, stdWrap helper and usage example.
View checkboxes.txt
temp.checkbox_with_split = COA
temp.checkbox_with_split {
# Define data
10 = LOAD_REGISTER
10 {
# Valid bits in the field
bits = 1,2,3,4,5,6,7
# Field name in the database. Don't move below other registers!
@davemo
davemo / .gitconfig
Last active Apr 12, 2016
Git Config
View .gitconfig
[user]
name = David Mosher
email = davidmosher@gmail.com
[core]
autocrlf = input
safecrlf = false
editor = vim
excludesFile = /Users/davidmosher/.gitignore_global
[github]
user = davemo
You can’t perform that action at this time.