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
<!-- things you will need --> | |
<script src = 'http://code.jquery.com/jquery-1.8.2.min.js' ></script> | |
<script src = 'http://d3js.org/d3.v2.min.js' ></script> | |
<script src = 'https://raw.github.com/IntoMethod/Lightweight-JSONP/master/jsonp.js' ></script> | |
<script src = 'https://raw.github.com/kuchumovn/jquery-full-house/master/jquery-full-house.js' ></script> | |
<script> | |
var treemap = d3.layout.treemap() | |
.sort( function(a, b ){ return a.data && b.data ? (a.data.ups - a.data.downs ) - ( b.data.ups - b.data.downs ) : 1; } ) // i'm not a very smart man | |
.value(function(d) { |
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
$("*[unselectable]").removeAttr("unselectable");$(".page-blur-promo-overlay").parent().remove(); $("head").append("<style>* { text-shadow: none !important; color: black !important; -webkit-user-select: initial !important; -khtml-user-drag: inital; -khtml-user-select: initial !important; -moz-user-select: initial !important; -moz-user-select: -moz-initial !important; -ms-user-select: initial !important; user-select: initial !important;}</style>"); |
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
<link rel="import" href="../ace-element/ace-element.html"> | |
<link rel="import" href="../paper-button/paper-button.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { | |
position: absolute; | |
width: 100%; |
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
<iframe width="700" height="394" | |
id="youtube_iframe" | |
src="//www.youtube.com/embed/73txXT21aZU?wmode=transparent" | |
frameborder="0" allowfullscreen=""></iframe> |
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
<iframe width="700" height="394" | |
id="youtube_iframe" | |
src="//www.youtube.com/embed/73txXT21aZU?wmode=transparent" | |
frameborder="0" allowfullscreen=""></iframe> |
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 | |
$chars = array( | |
'a', 'x', 'y', 'f', | |
'a', 'x', 'y', 'f', | |
'a', 'x', 'y', 'f', | |
'a', 'x', 'y', 'f' | |
); | |
// sa zicem ca chars are 81 de litere in el, | |
// doar 1 litera este cea pe care o vrei tu |
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 | |
/* | |
|-------------------------------------------------------------------------- | |
| Sharing Laravel's session and checking authentication | |
|-------------------------------------------------------------------------- | |
| | |
| Customized Moxiemanager plugin for use in our Laravel App. We use a custom | |
| External authentication module, but you get the gist (ha ha) of it. | |
| Put the Plugin.php file in moxiemanager/plugins/LaravelAuthenticator |
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 lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" | |
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>Document</title> | |
</head> | |
<body> |
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
'use strict'; | |
var linesElement = 3; //it will truncate at 3 lines. | |
var truncateElement = document.getElementById('truncateme'); | |
var truncateText = truncateElement.textContent; | |
var getLineHeight = function getLineHeight(element) { | |
var lineHeight = window.getComputedStyle(truncateElement)['line-height']; | |
if (lineHeight === 'normal') { | |
// sucky chrome |
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
// By default, Klaro will load the config from a global "klaroConfig" variable. | |
// You can change this by specifying the "data-config" attribute on your | |
// script take, e.g. like this: | |
// <script src="klaro.js" data-config="myConfigVariableName" /> | |
// You can also disable auto-loading of the consent notice by adding | |
// data-no-auto-load=true to the script tag. | |
var klaroConfig = { | |
// You can customize the ID of the DIV element that Klaro will create | |
// when starting up. If undefined, Klaro will use 'klaro'. | |
elementID: 'klaro', |
OlderNewer