Skip to content

Instantly share code, notes, and snippets.

@ABooooo
ABooooo / new_gist_file_0
Last active November 1, 2018 08:18
direkt linkt to article
http://www.mysite.com/index.php?option=com_content&view=article&id=[article id]
@ABooooo
ABooooo / new_gist_file_0
Created December 4, 2014 12:28
remove blue border
element:focus {outline:0;}
@ABooooo
ABooooo / new_gist_file_0
Created December 11, 2014 09:38
Rewrite URL - if 500 server error
Go to the line "Options +FollowSymLinks" and add a "#" to comment it out as below.
#Options +FollowSymLinks (in htaccess)
@ABooooo
ABooooo / new_gist_file_0
Last active November 1, 2018 08:18
same height all columns
setTimeout(function(){
var sameHeightTop = $(".subBoxes");
if (sameHeightTop.length !== 0) {
sameHeightTop.each(function () {
var tallest = 0;
var sameHeightChildren = $(this).find(".subBox");
sameHeightChildren.each(function () {
var thisHeight = $(this).height();
if (thisHeight > tallest) {
tallest = thisHeight;
@ABooooo
ABooooo / new_gist_file_0
Created February 15, 2015 20:25
show post from category
<?php
//Protect against arbitrary paged values
$paged = ( get_query_var( 'paged' ) ) ? absint( get_query_var( 'paged' ) ) : 1;
$args = array(
'posts_per_page' => 10,
'category_name' => 'novice',
'paged' => $paged,
);
@ABooooo
ABooooo / new_gist_file_0
Created March 19, 2015 07:43
Sass version / help
sass -?
@ABooooo
ABooooo / new_gist_file_0
Created March 19, 2015 07:45
gem / ruby version
gem -v
ruby -v
@ABooooo
ABooooo / new_gist_file_0
Created March 19, 2015 07:49
compile sass update / watch
sass --update
sass --update sytle.scss
sass --update style.scss:style.css
sass --update folder:folder
sass --watch folder:folder
@ABooooo
ABooooo / new_gist_file_0
Created March 19, 2015 07:51
terminal commands
ls - list files and folders
clear - reset terminal
cd .. - one folder back
@ABooooo
ABooooo / new_gist_file.sass
Last active November 1, 2018 08:16
mixins with arguments
// regular arguments
@mixin customBorder ($width, $color, $style) {
border: {
width: $width;
color: $color;
style: $style;
}
}