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
<?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 / 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';
@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
_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)