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
<html> | |
<head> | |
<title>foo</title> | |
<style type="text/css"> | |
#box1 { | |
background-color: #fee; | |
width: 600px | |
} |
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
""" | |
Zensiert Benjamins Mutter | |
In den Xchat-Ordner legen (~/xchat2 oder so), um es automatisch laden zu lassen. | |
""" | |
__module_name__ = "benji" | |
__module_version__ = "1.0" |
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
#!/usr/bin/env python | |
# encoding: utf-8 | |
class Base(object): | |
pass | |
class Eins(Base): | |
pass | |
class Zwei(Base): |
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> | |
<style> | |
div.cocoa-check { | |
display: "a . b" /min-height | |
". . @" * | |
min-content 1em *; | |
} |
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
function daysInMonthOf(theDate) { | |
var nextBegin = new Date(theDate.getYear, theDate.getMonth + 1, 1), | |
lastDayOfMonth = new Date(nextBegin.getTime() - 1); | |
return lastDayOfMonth.getDate(); | |
} |
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 (var i=0; i<foo; ++i) { | |
(function (i) { | |
links[i].addEventListener("click", function () { | |
_this.init(i) | |
return false | |
}); | |
})(i) | |
} |
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
(function (jq) { | |
var months = ["Jan", "Feb", "Mar", "Apr", | |
"May", "Jun", "Jul", "Aug", | |
"Sep", "Oct", "Nov", "Dec"], | |
monthNumber = {}; | |
months.forEach(function (monthName, index) { | |
monthNumber[monthName] = index | |
}) |
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
Array.prototype.unique = function() { | |
var obj = {}; | |
this.forEach(function (element) { | |
obj[element] = true | |
}) | |
return obj.keys(); | |
} |
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
Array.prototype.unique = function() { | |
var uniqueKeys = {}, | |
uniqueArray = [], | |
items = this.length | |
while (items) | |
uniqueKeys[this[--items]] = true | |
for (var key in uniqueKeys) | |
if (uniqueKeys.hasOwnProperty(key)) uniqueArray.push(key) |
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
Array.prototype.unique = function() { | |
var uniqueKeys = {}; | |
var items = this.length; | |
while ( items ) { | |
uniqueKeys[ this[ --items ] ] = true; | |
} | |
var uniqueArray = []; | |
for ( var key in uniqueKeys ) { | |
if ( uniqueKeys.hasOwnProperty( key ) ) { |
OlderNewer