Skip to content

Instantly share code, notes, and snippets.

View Trolzie's full-sized avatar
:shipit:

Troels Lauritz Reese Christensen Trolzie

:shipit:
View GitHub Profile
@Trolzie
Trolzie / gist:2061267
Created March 17, 2012 15:35
HTML: Starting Template
<!doctype>
<html>
<head>
<meta charset=uft-8>
<title></title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js"></script>
@Trolzie
Trolzie / gist:2061319
Created March 17, 2012 15:41 — forked from padolsey/gist:527683
JavaScript: Detect IE
// ----------------------------------------------------------
// A short snippet for detecting versions of IE in JavaScript
// without resorting to user-agent sniffing
// ----------------------------------------------------------
// If you're not in IE (or IE version is less than 5) then:
// ie === undefined
// If you're in IE (>=5) then you can determine which version:
// ie === 7; // IE7
// Thus, to detect IE:
// if (ie) {}
@Trolzie
Trolzie / reset.css
Created April 2, 2012 09:44
CSS: Reset
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
dl, dt, dd, ul, li,
form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td {
margin: 0;
padding: 0;
@Trolzie
Trolzie / README.md
Created November 27, 2012 13:26 — forked from briangonzalez/README.md
img2boxshadow - a ruby script to convert images to CSS [http://codepen.io/briangonzalez/details/AvrGI#pen-details-tab]

img2boxshadow.rb

a ruby script to convert images to CSS (box-shadows)

Installation

gem install rmagick    # you'll need ImageMagick & Ruby first
gem install colormath
gem install micro-optparse

Keybase proof

I hereby claim:

  • I am trolzie on github.
  • I am trolzie (https://keybase.io/trolzie) on keybase.
  • I have a public key whose fingerprint is 8AE7 7C61 7207 6C9B 1A41 4A0C 0B6C 3906 8E18 88E8

To claim this, I am signing this object:

@Trolzie
Trolzie / widget-language-example.htm
Last active June 6, 2018 09:18 — forked from laander/widget-language-example.htm
Booking.js widget full language localization
<div id="bookingjs"></div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://cdn.timekit.io/booking-js/v1/booking.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/fullcalendar/3.4.0/lang/es.js"></script>
<script>
window.timekitBookingConfig = {
app_key: 'live_widget_key_yYXHsUurvCUctNYflzGDMqEJo6mol0Yo',
resources: [],
fullcalendar: {
locale: 'es'

Keybase proof

I hereby claim:

  • I am trolzie on github.
  • I am trolz (https://keybase.io/trolz) on keybase.
  • I have a public key ASCAis7Ia9MoJgYYfcAyGajukMHNhs_gvNqJciYk0HMdXgo

To claim this, I am signing this object: