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
<?php | |
class User{ | |
public $user_email = "[email protected]"; | |
} | |
$obj = new User(); | |
function return_stuff($key){ | |
return $obj->$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
@mixin icon($symbol, $color: transparent, $pos: left top){ | |
background: $color url(style/images/#{$symbol}.png) no-repeat $pos; | |
padding-left: 25px; | |
} | |
// Usage: |
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
javascript:(function(){var c=window.location.search.substring(1);if(window.location.href.search('systembolaget.se')==-1||c.search('varuNr')==-1){alert('Hittade ingen URL från Systembolaget.se. Se till att du verkligen har en produktsida från Systembolaget.se öppen!');return false}else{var d='http://systmt.se/'+f('varuNr',c);alert('Din korta URL: '+d);return d}function f(g,h){var e=h.split('&'),a;for(var b=0;b<e.length;b++){a=e[b].split('=');if(a[0]==g){return a[1]}}}})(); |
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 d = window.document, | |
s = d.createElement('script'), | |
u = 'https://gist.github.com/raw/898192/828a9f94ac02c4f95ed0e9538a9a7d26ad661395/systmt.js'; | |
function load(){ | |
if(d.readyState && d.readyState != 'complete'){ | |
setTimeout(load, 200); | |
}else{ | |
if(typeof systmt == 'undefined'){ |
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
require "rake" | |
desc "Build and upload site" | |
task :deploy => [:sass, :compile_all_js, :upload] do | |
end | |
desc "Make sure the master Sass file is compiled" | |
task :sass do |
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
// As usual | |
$(document).ready(init); | |
// When the Ajax-event is complete, i.e. when the content is pulled in: | |
$(document).bind("pjax-complete", init); | |
function init(){ | |
// Using Pjax (https://github.com/defunkt/jquery-pjax) | |
// Essentially just a wrapper around the .ajax() function which |
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
-moz-border-radius: 0 !important; | |
-webkit-border-radius: 0 !important; | |
border-radius: 0 !important; | |
text-shadow: none !important; | |
-webkit-box-shadow: none !important; | |
-moz-box-shadow: none !important; | |
box-shadow: none !important; |
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($){ | |
/** | |
* Simple dropdown plugin | |
* By Johan | |
*/ | |
$.fn.toggleDropdown = function(options){ | |
var settings = { | |
activeClass: "dropdown-active", | |
menuSelector: ".dropdown-menu", | |
closeSelector: ".close" |
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
// List | |
tr.zA > td{ | |
padding-top: 5px !important; | |
padding-bottom: 5px !important; | |
} | |
// Mails | |
tr.zA:hover{ | |
background-color: #FFFBC4 !important; | |
} |
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
.clearfix:after{ | |
visibility: hidden; | |
display: block; | |
font-size: 0; | |
content: " "; | |
clear: both; | |
height: 0; | |
} | |
.clearfix {display: inline-block;} |