This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Elementschatten mit CSS3 Box Shadow</title> | |
<style> | |
body { | |
width: 500px; | |
margin: 100px auto; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.horsed.gists.externallink; | |
import org.apache.wicket.markup.ComponentTag; | |
import org.apache.wicket.markup.html.WebMarkupContainer; | |
import org.apache.wicket.markup.html.panel.Panel; | |
import org.apache.wicket.model.IModel; | |
/** | |
* Imitation of an {@link org.apache.wicket.markup.html.link.ExternalLink} that provides the {@code href} attribute | |
* through a callback. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Retention(value=RUNTIME) | |
@Target({ElementType=FIELD}) | |
public @interface DefaultIfNUll { | |
String stringValue(); | |
int intValue(); | |
boolean booleanValue(); | |
byte byteValue(); | |
short shortValue(); | |
long longValue(); | |
float floatValue(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.horsed.wicket.cssmerger; | |
import java.io.File; | |
import java.io.IOException; | |
import java.util.ArrayList; | |
import java.util.List; | |
import org.apache.commons.io.FileUtils; | |
import org.apache.wicket.markup.head.CssContentHeaderItem; | |
import org.apache.wicket.markup.head.CssHeaderItem; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for f in `find -name FILENAME`; do cat $f | sed 's/STRING1/STRING2/g' > tmp.txt; mv tmp.txt $f; done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var _ = require('lodash'); | |
module.exports = Checkout; | |
function Checkout(pricingRules) { | |
this.pricingRules = pricingRules; | |
this.basket = {}; | |
} | |
Checkout.prototype.scan = function(item) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
# All Vagrant configuration is done here. The most common configuration | |
# options are documented and commented below. For a complete reference, | |
# please see the online documentation at vagrantup.com. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System.Collections; | |
using System.Collections.Generic; | |
using Random = UnityEngine.Random; | |
public class PartiallyTransparentSprite : MonoBehaviour { | |
public SpriteRenderer renderer; | |
Material material; | |
List<Color> holes= new List<Color>(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System; | |
public class EventContainer : MonoBehaviour { | |
public class EmptyEvent { | |
public delegate void EmptyDelegate(); | |
public event EmptyDelegate Event; | |
public void Emit() { if(Event != null) Event(); } | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name steamspy shortcut | |
// @namespace http:/flatbutton.co/ | |
// @version 1.0 | |
// @author Martin Knopf | |
// @match http://store.steampowered.com/app/* | |
// @grant none | |
// @require https://cdnjs.cloudflare.com/ajax/libs/zepto/1.1.4/zepto.min.js | |
// ==/UserScript== |
OlderNewer