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
@addyosmani
addyosmani / package.json
Last active Dec 7, 2019
npm run-scripts boilerplate
View package.json
{
"name": "my-app",
"version": "1.0.0",
"description": "My test app",
"main": "src/js/index.js",
"scripts": {
"jshint:dist": "jshint src/js/*.js",
"jshint": "npm run jshint:dist",
"jscs": "jscs src/*.js",
"browserify": "browserify -s Validating -o ./dist/js/build.js ./lib/index.js",
@joshcarr
joshcarr / soundwaves.js
Created May 1, 2014
Creating sound waves with JavaScript
View soundwaves.js
// Creating sound waves with JavaScript
// from http://js.do/blog/sound-waves-with-javascript/
var samples = []
//
//
//
// Achord
@jasny
jasny / bootstrap-em.less
Last active Jan 5, 2020
Use em or rem font-size in Bootstrap 3
View bootstrap-em.less
/**
* Use em or rem font-size in Bootstrap 3
*/
@font-size-root: 14px;
@font-unit: 0rem; // Pick em or rem here
// Convert all variables to em
@fregante
fregante / TimelineLite.addDelay.js
Last active Dec 24, 2018
Method to add delays at any position in Greensocks TimelineLite and TimelineMax (Javascript GSAP)
View TimelineLite.addDelay.js
/**
* Add a delay at the end of the timeline (or at any label)
* @param {number} delay Seconds to wait
* @param {string} position Label name where to start the delay
*
* Usage: tl.addDelay(4); //easy!
*/
TimelineLite.prototype.addDelay = function (delay, position) {
var delayAttr;
if(typeof delay === 'undefined' || isNaN(delay)){
View vumeter.js
// create the audio context (chrome only for now)
var context = new webkitAudioContext();
var audioBuffer;
var sourceNode;
var analyser;
var javascriptNode;
// get the context from the canvas to draw on
var ctx = $("#canvas").get()[0].getContext("2d");
View bootstrap3_collapsible_element.xml
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<T3DataStructure>
<meta type="array">
<langDisable>1</langDisable>
</meta>
<sheets>
<general>
<ROOT type="array">
<TCEforms>
<sheetTitle>Einstellungen</sheetTitle>
@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!
@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)->
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
You can’t perform that action at this time.