Skip to content

Instantly share code, notes, and snippets.

View ASDAFF's full-sized avatar
🏠
Working from home

ASDAFF ASDAFF

🏠
Working from home
View GitHub Profile
_log_pskb(date_created,link_id,logname,log)
account(id,uid,sum)
account_attach(account_id,file_id,name,orig_name)
account_transaction(user_id,yd)
activate_service(code,email,data)
admin_log_users(user_id,log_id,last_comment_view)
annoy(ip,last_req)
articles(title,short,msgtext,sign,logo,link)
articles_comments(from_id,parent_id,from_ip,created_time,article_id,msgtext,youtube_link)
articles_comments_files(comment_id,file_id,small,inline,temp)
@ASDAFF
ASDAFF / 0_reuse_code.js
Created November 12, 2015 23:57
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@ASDAFF
ASDAFF / gist:bd37d1cdbf09faa85e30
Last active November 18, 2015 21:38 — forked from pragmatic-web/gist:6306792
Получение миниатюры с конкретным размером Vimeo с помощью cURL/PHP (http://www.soapboxdave.com/2010/04/getting-the-vimeo-thumbnail/)
function vimeo_thumb_size( $id, $size = 'large' ) {
// Sanitize the variables
$id = esc_attr( $id );
$size = esc_attr( $size );
// Stop if no video ID entered
if ( empty( $id ) )
return 'Error - no video ID specified';
<?php
/**************************************/
/** HtmlFromNabor snippet for MODX Revo
*
* @version 0.2
* @author Borisov Evgeniy aka Agel Nash (agel-nash@xaker.ru)
* @date 18.12.2012
*
* @category snippet
* @internal @modx_category System
@ASDAFF
ASDAFF / how to use
Last active January 5, 2016 17:12 — forked from coonica/how to use
MODX Revo snippet to divide resources into columns.
Call the snippet
[[multiCols?
&cols=`2`
&tvs=`{"image":1}`
&select=`pagetitle,introtext`
&where=`{"published":1, "deleted":0, "parent":2}`
&sortby=`publishedon`
&sortdir=`DESC`
&tpl=`tpl_article`
@ASDAFF
ASDAFF / favicon_MODx.html
Last active March 7, 2016 14:29
favicon.ico MODx
<link rel="shortcut icon" href="[(site_url)]/favicon.ico"/>
[[Wayfinder?startId=`0`]]
[[Wayfinder?startId=`6`]]
[[Wayfinder? &startId=`[*parent*]`]]
@ASDAFF
ASDAFF / MODx pdoResources Ajax Filter
Last active April 4, 2017 17:59
MODx pdoResources Ajax Filter
$(function() {
//MODx pdoResources Ajax Filter
//Filter Settings
var fadeSpeed = 200, // Fade Animation Speed
ajaxCountSelector = '.ajax-count', // CSS Selector of Items Counter
ajaxContainerSelector = '.ajax-container', // CSS Selector of Ajax Container
ajaxItemSelector = '.ajax-item', // CSS Selector of Ajax Item
ajaxFormSelector = '.ajax-form', // CSS Selector of Ajax Filter Form
ajaxFormButtonStart = '.ajax-start', // CSS Selector of Button Start Filtering