Skip to content

Instantly share code, notes, and snippets.

View chestozo's full-sized avatar

chestozo

  • Portugal
  • 04:46 (UTC +01:00)
View GitHub Profile
@chestozo
chestozo / al.txt
Created August 21, 2014 12:59
markdown-like on al
@main[] ^header[Создание плаката ко Дню независимости Украины (2014)] ^maindir[]
^include[../../holidays.p]
^tabs_poster_son[]
^include[../../ukraine-independence-day.p]
^tabs_son[]
Создание плаката ко Дню независимости Украины (2014)
^include[../auto.p]
@chestozo
chestozo / sinon.fakeServer.autoRespondAfter.js
Created September 15, 2014 08:27
Dynamic value for sinon fakeServer autoRespondAfter property
var server = sinon.fakeServer.create();
server.autoRespond = true;
Object.defineProperty(server, 'autoRespondAfter', {
get: function() {
if (someSmartCondition) {
return 100;
}
return 10;
SELECT * FROM `yourdatabase`.wp_posts WHERE post_status=’publish’ order by post_date DESC
mysql -u root -D ‘yourdatabase’ -e “UPDATE wp_posts SET post_content=’`cat your-local-file.html | perl -i -pe “s/’/\\\\\\’/g”`’ WHERE ID=6826"
osascript -e ‘tell application “Google Chrome”’ -e ‘set t to active tab of window 1’ -e ‘end tell’ -e ‘return t’
osascript -e ‘tell application “Google Chrome”’ -e ‘reload tab id 5456 of window id 18’ -e ‘end tell’
@chestozo
chestozo / dabblet.css
Created December 24, 2011 22:00 — forked from anonymous/dabblet.css
Untitled
body {
padding-top: 100px;
padding-left: 30px;
font: 12px arial;
}
div.ballon {
position: absolute;
display: inline-block;
border: 1px solid #EEE;
@chestozo
chestozo / dabblet.css
Created December 24, 2011 22:00 — forked from anonymous/dabblet.css
Untitled
a {
display: inline-block;
padding: 3px 12px;
border: 1px solid #999;
border-top-color: #BBB;
border-radius: 3px;
font: 11px arial;
text-decoration: none;
@chestozo
chestozo / dabblet.css
Created March 12, 2012 10:43
Untitled
a {
display: inline-block;
padding: 3px 12px;
border: 1px solid #999;
border-top-color: #BBB;
border-radius: 3px;
font: 11px arial;
text-decoration: none;
@chestozo
chestozo / yandex-mail.archive.user.js
Created March 29, 2012 09:16 — forked from gurugray/yandex-mail.archive.user.js
кнопка «Архив» для почты Яндекса
// «archive» button for yandex mail
// version 0.1.5
// 2012-03-28
//
// ==UserScript==
// @name «Yandex Mail Archive button»
// @namespace http://gurugray.ru
// @description Создаём кнопку «В архив» на web-почте Яндекса
// @include http*://mail.yandex*/neo2/*