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 / 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;
@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
@julianxhokaxhiu
julianxhokaxhiu / bs3-responsive-text.scss
Created April 23, 2015 08:54
Bootstrap 3 Responsive Text Align
// Extend Text Alignment to make it responsive
.text-left-not-xs,
.text-left-not-sm,
.text-left-not-md,
.text-left-not-lg {
text-align: left;
}
.text-center-not-xs,
.text-center-not-sm,
.text-center-not-md,
@julianxhokaxhiu
julianxhokaxhiu / gist:31eb2f1a4c13956d2673
Last active August 29, 2015 14:20
Initialize a Desktop & Mobile slider based on device + Detectizr class. Also link the Desktop slider to jQuery Slick, so they scroll together. Finally embed Slick internal content to Fancybox if specified through data attribute
// Initialize two different lightbox plugins based on the device where we are
$( '.desktop .lightbox' )
.fancybox({
loop: false,
minWidth: 400,
maxWidth: 600,
beforeShow: function() {
var $this = $(this.element),
iframe = $.fancybox.inner.find('iframe'),
src = iframe.attr('src'),
(function($){
/* addClass shim
****************************************************/
var addClass = $.fn.addClass;
$.fn.addClass = function(value) {
var orig = addClass.apply(this, arguments);
var elem,
i = 0,
@julianxhokaxhiu
julianxhokaxhiu / .htaccess
Last active August 29, 2015 14:27
Allow google and developers IP access without pw
# Allow google and developers IP access without pw
AuthName "Authorized Users Only."
AuthType Basic
AuthUserFile /etc/httpd/conf/.htpasswd
require user testusr
Order deny,allow
Deny from all
Allow from 66.249.93.214 # PageSpeed Insights
Allow from 66.249.93.217 # PageSpeed Insights
Allow from 66.249.93.220 # PageSpeed Insights