Skip to content

Instantly share code, notes, and snippets.

<script type="text/javascript">
$j=jQuery.noConflict();
$j(document).ready(function() {
resizeCols();
});
@xpander54
xpander54 / Tabs Bootsrap 3
Created March 15, 2014 17:52
Tabs Bootsrap 3
<div class="row">
<div class="coberturas-index">
<ul class="nav nav-tabs">
<li class="active">
<a href="#basica" data-toggle="tab">
Basica
</a>
</li>
git status
/it all begins here!
git remote show origin
/show current git project adress
git add .
add all new files to the commit you about to commit
git commit -m 'commit data try to be clear'
@xpander54
xpander54 / gist:ac0e9d80d05636926dbb
Last active August 29, 2015 14:03
picture it carousel img height
.directive('imgHeightFix', function() {
return {
restrict: 'A',
link: function (scope, element, attrs) {
//var h = $(element).attr('img-height');
var fixCarousel = function (imgHeight) {
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Lift Zone</title>
<link href="style.css" rel="stylesheet" type="text/css" />
</head>
<body>
/* Any element with class="animate" animate */
.animate.ng-enter, .animate.ng-leave {
position: absolute;
left: 0;
right: 0;
-webkit-transition:all .2s ease-in-out;
-moz-transition:all .2s ease-in-out;
-o-transition:all .2s ease-in-out;
transition:all .2s ease-in-out;
}
.topmenudiv a:link
{
}
.topmenudiv a:hover
{
@xpander54
xpander54 / _etc_init.d_autosshd
Created October 4, 2015 02:09 — forked from suma/_etc_init.d_autosshd
Autossh init script(Ubuntu) for reverse ssh tunneling
#! /bin/sh
### BEGIN INIT INFO
# Provides: autosshd
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: autosshd initscript
# Description: This file should be used to construct scripts to be
# placed in /etc/init.d.
RASPBERRY PI 2
^Usbs facing down
leave top line free then
5v w 5v
3v w 3v
Etc
Follow this tutorial
https://www.raspberrypi.org/forums/viewtopic.php?f=66&t=85683