Skip to content

Instantly share code, notes, and snippets.

View julianxhokaxhiu's full-sized avatar
🚀
Impossible Is Nothing.

Julian Xhokaxhiu julianxhokaxhiu

🚀
Impossible Is Nothing.
View GitHub Profile
@julianxhokaxhiu
julianxhokaxhiu / position-fixed.css
Created August 16, 2012 09:14 — forked from subtleGradient/position-fixed.css
Make position:fixed work in IE6
/*Make position:fixed work in IE6!*/
.fixed-top /* position fixed Top */{position:fixed;bottom:auto;top:0;}
.fixed-bottom /* position fixed Bottom */{position:fixed;bottom:0;top:auto;}
.fixed-left /* position fixed Left */{position:fixed;right:auto;left:0;}
.fixed-right /* position fixed right */{position:fixed;right:0;left:auto;}
* html,* html body /* IE6 Fixed Position Jitter Fix */{background-image:url(about:blank);background-attachment:fixed;}
* html .fixed-top /* IE6 position fixed Top */{position:absolute;bottom:auto;top:expression(eval(document.documentElement.scrollTop));}
* html .fixed-right /* IE6 position fixed right */{position:absolute;right:auto;left:expression(eval(document.documentElement.scrollLeft+document.documentElement.clientWidth-this.offsetWidth)-(parseInt(this.currentStyle.marginLeft,10)||0)-(parseInt(this.currentStyle.marginRight,10)||0));}
@julianxhokaxhiu
julianxhokaxhiu / demo.html
Last active November 18, 2015 11:51
BS3 Collapse without IDs
<div class="panel-group">
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">
<a data-toggle="collapse-parent-next" href="#">
Collapsible Group Item #1
</a>
</h4>
</div>
<div class="panel-collapse collapse in">
@julianxhokaxhiu
julianxhokaxhiu / style.scss
Last active August 29, 2015 14:03
Special bullets for your lists
ul {
position: relative;
list-style-type: none;
padding: 0;
li {
word-wrap: break-word;
padding-left: 30px; // Adjust this as much as you like, based on 'font-size' and 'content' property
&:before {
position: absolute;
left: 0;
<?php
/**
* Dot notation for access multidimensional arrays.
*
* $dn = new DotNotation(['bar'=>['baz'=>['foo'=>true]]]);
*
* $value = $dn->get('bar.baz.foo'); // $value == true
*
* $dn->set('bar.baz.foo', false); // ['foo'=>false]
*
@julianxhokaxhiu
julianxhokaxhiu / _bs3_same-height-cols.scss
Created September 15, 2014 13:50
Vertical alignment on Bootstrap 3 columns with equal height
// Source by http://www.minimit.com/articles/solutions-tutorials/bootstrap-3-responsive-columns-of-same-height
// columns of same height styles
.container-xs-height {
display:table;
padding-left:0px;
padding-right:0px;
}
.row-xs-height {
display:table-row;
@julianxhokaxhiu
julianxhokaxhiu / style.scss
Last active August 29, 2015 14:09
Custom Checkbox and Radio buttons with icon fonts for Bootstrap 3 - CSS Only
/******************************************************************************************
Custom checkboxes and radios! Use only CSS
See http://www.andwecode.com/playground-demo/custom-checkbox-with-font-icon/
Port to SCSS by Julian Xhokaxhiu <info@julianxhokaxhiu.com> (http://julianxhokaxhiu.com)
*******************************************************************************************/
.checkbox,
.radio {
input {
opacity: 0;
position: absolute;
@julianxhokaxhiu
julianxhokaxhiu / index.html
Created November 25, 2014 10:16
Responsive Tables / Swap TH to the left on mobile
<!--
Based on http://elvery.net/demo/responsive-tables/#no-more-tables
-->
<table>
<thead>
<tr>
<th>Code</th>
<th>Company</th>
<th class="numeric">Price</th>
<th class="numeric">Change</th>
@julianxhokaxhiu
julianxhokaxhiu / .bashrc
Last active August 29, 2015 14:10 — forked from cjerdonek/.bashrc
# Call virtualenvwrapper's "workon" if .venv exists. This is modified from--
# http://justinlilly.com/python/virtualenv_wrapper_helper.html
# which is linked from--
# http://virtualenvwrapper.readthedocs.org/en/latest/tips.html#automatically-run-workon-when-entering-a-directory
check_virtualenv() {
if [ -e .venv ]; then
env=`cat .venv`
echo "Found .venv in directory. Calling: workon ${env}"
workon $env
fi
@julianxhokaxhiu
julianxhokaxhiu / index.html
Last active August 29, 2015 14:17 — forked from galengidman/index.html
`display: table` sticky footer trick
<header class="page-row">
<h1>Site Title</h1>
</header>
<main class="page-row page-row-expanded">
<p>Page content goes here.</p>
</main>
<footer class="page-row">
<p>Copyright, blah blah blah.</p>
@julianxhokaxhiu
julianxhokaxhiu / Instructions
Last active August 29, 2015 14:18
How to get batik-ttf2svg working on Arch Linux
1. `pacman -Sy batik-java` and choose to use Java 8 JRE
2. `wget http://artfiles.org/apache.org/xmlgraphics/batik/binaries/batik-bin-1.8.tar.gz`
3. `sudo tar xzf batik-bin-1.8.tar.gz -C /usr/share/java/`
4. Place `batik-ttf2svg` in `/usr/local/bin` and `chmod 0755 /usr/local/bin/batik-ttf2svg`
5. Enjoy