Skip to content

Instantly share code, notes, and snippets.

View nimdraugsael's full-sized avatar

Aleksei Shaikhaleev nimdraugsael

  • Phuket, Thailand
View GitHub Profile
<?php
// function for gallery
function ngg_get_galleries() {
global $wpdb;
$galleries = $wpdb->get_results("SELECT * FROM wp_ngg_gallery;");
return $galleries;
}
/**
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
# don't put duplicate lines or lines starting with space in the history.
# See bash(1) for more options
HISTCONTROL=ignoreboth
(function($) {
$(document).ready(function() {
$('#fp-baloon')
.sprite()
.spRandom({top: 20, bottom: 30, left: 470, right: 730, speed: 10000, pause: 2000 })
.isDraggable()
.activeOnClick()
.active();
$('#fp-cloud1').pan({fps: 30, speed: 0.2, dir: 'left', depth: 10});
$('#fp-cloud2').pan({fps: 30, speed: 0.1, dir: 'left', depth: 11});
<snippet>
<content><![CDATA[
<%= ${1:this} %>
]]></content>
<tabTrigger>r</tabTrigger>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<!-- <tabTrigger>hello</tabTrigger> -->
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.python</scope> -->
</snippet>