Skip to content

Instantly share code, notes, and snippets.

Lukas Nowacki lucjan

  • Lodz
Block or report user

Report or block lucjan

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
@lucjan
lucjan / getWeek.js
Created Nov 11, 2012
Get a week in a year in JavaScript - ISO 8601
View getWeek.js
var getWeek=function(a){var b=new Date(a);return b.setDate(b.getDate()-(a.getDay()+6)%7+3),1+((b-new Date(b.getFullYear(),0,4))/864e5/7+1)|0}
@lucjan
lucjan / gd-page-developer-gist.html
Created Oct 25, 2012
GD website developer page gist
View gd-page-developer-gist.html
<script>
window.gdLoaded = function(gd) {
gd.init({
staticHost: 'https://static-files.globaldawn.com'
}).then(function() { /* your event handlers */ });
};
</script>
<script src="https://static-files.globaldawn.com/js/gd-sdk-bootstrap.js"></script>
View dabblet.css
.first:hover + .second + .third {
color: red;
}
View gist:1583806
((document, window) ->
pfx = (->
style = document.createElement("dummy").style
prefixes = "Webkit Moz O ms Khtml".split(" ")
memory = {}
(prop) ->
if typeof memory[prop] is "undefined"
ucProp = prop.charAt(0).toUpperCase() + prop.substr(1)
props = (prop + " " + prefixes.join(ucProp + " ") + ucProp).split(" ")
memory[prop] = null
You can’t perform that action at this time.