This file contains hidden or 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
<!-- Print a template path --> | |
<?php print base_path(); ?> |
This file contains hidden or 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
/* ================================================================================ */ | |
/* Columns and bootstrap componants for < 480px | |
/* ================================================================================ */ | |
.col-ms-1, .col-ms-2, .col-ms-3, .col-ms-4, .col-ms-5, .col-ms-6, .col-ms-7, .col-ms-8, .col-ms-9, .col-ms-10, .col-ms-11, .col-ms-12 { | |
position: relative; | |
min-height: 1px; | |
padding-left: 15px; | |
padding-right: 15px; | |
} | |
@media (max-width: 480px) { |
This file contains hidden or 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> | |
<head> | |
<title>Title</title> | |
<meta charset="UTF-8"> | |
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.2.0/css/bootstrap-theme.min.css" charset="utf-8"> | |
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.2.0/css/bootstrap.min.css" charset="utf-8"> | |
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.2.0/fonts/glyphicons-halflings-regular.eot" charset="utf-8"> | |
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.2.0/fonts/glyphicons-halflings-regular.svg" charset="utf-8"> | |
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.2.0/fonts/glyphicons-halflings-regular.ttf" charset="utf-8"> |
This file contains hidden or 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 rot13(str) { // LBH QVQ VG! | |
var result = [], | |
rotdex = str.split(''), | |
charcode; | |
for (i = 0; i < rotdex.length; i++) { | |
charcode = (rotdex[i].charCodeAt() - 13); | |
if ((charcode + 13) == 32 || (charcode + 13) == 33 || (charcode + 13) == 46 || (charcode + 13) == 63) { | |
result.push(String.fromCharCode(charcode + 13)); | |
} |
This file contains hidden or 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
# del -> | |
$scope.ext = [] | |
$http.get('/data/social.json').then (result) -> | |
$scope.ext = result.data.fetchr[9] | |
console.log($scope.ext) | |
return | |
# -> del |
This file contains hidden or 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
console.trace('trace var'); // get the trace and your great list of all related functions | |
eg. | |
this.funcY = function(){ | |
this.funcZ(); | |
} | |
this.funcZ = function(){ | |
console.trace('trace car') |
This file contains hidden or 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
.ind .table-container table td, .ind .table-container table th { | |
overflow: hidden; | |
white-space: nowrap; | |
text-overflow: ellipsis; | |
} |
This file contains hidden or 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 fizzBuzz(n) { | |
var fizzy = []; | |
for (var i = 1; i <= n; i++) { | |
if (i % 3 === 0 && i % 5 === 0) { | |
fizzy.push("FizzBuzz"); | |
} | |
else if (i % 3 === 0) { | |
fizzy.push("Fizz"); | |
} | |
else if (i % 5 === 0) { |
This file contains hidden or 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
sudo rm -rf web/bundles/* | |
sudo rm -rf web/css/* | |
sudo rm -rf web/js/* | |
php app/console cache:clear | |
php app/console assets:install | |
php app/console assetic:dump | |
sudo rm -rf web/bundles/* ; sudo rm -rf web/css/* ; sudo rm -rf web/js/* ; sudo rm -rf var/logs/* ; sudo rm -rf /vagrant/var/cache/ ; php app/console assets:install ; php app/console assetic:dump |
This file contains hidden or 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 dials = document.getElementsByClassName('dial'); | |
function Gauge(placeholderName, configuration) { | |
this.placeholderName = placeholderName; | |
var self = this; // for internal d3 functions | |
this.configure = function (configuration) { |