Skip to content

Instantly share code, notes, and snippets.

View andzi's full-sized avatar

andzil andzi

View GitHub Profile
div.head, div.foot {
display:none;
}
.page {
width:99%;
}
.body {
background:url(data:image/png;
base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHCAYAAADEUlfTAAAAG0lEQVQIW2OMq7zlw4ADMIIkF7WrbcEmP+gkAarWGgXyq5CNAAAAAElFTkSuQmCC) repeat;
border-top:0;
@andzi
andzi / 0_reuse_code.js
Last active August 29, 2015 14:24
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
@andzi
andzi / catsoo.md
Last active October 16, 2015 04:12 — forked from aranega/catsoo.md
CatsooLang documentation

CatsooLang Documentation (under construction...)

What is CatsooLang?

CatsooLang is a little Domain Specific Language (DSL) that allows you to handle models in a textual programming way into http://www.genmymodel.com. You can handle very low level feature of your model. CatsooLang interpreter is evaluated on the client side only, there is no intensive communication with server (there is some, we will come back on this later). Here is some details about the language:

  • dynamic typed,
  • adhoc polymorphic (function overloading) and type constraints/bounds,
@andzi
andzi / index.html
Created September 6, 2016 15:02 — forked from anonymous/index.html
[B2Bbasis registration - Подтверждение регистрации] // source https://jsbin.com/xobiwa
<style id="jsbin-css">
#DIV_1 {
height: 737px;
min-width: 940px;
width: 1074px;
perspective-origin: 537px 378.5px;
transform-origin: 537px 378.5px;
background: rgb(247, 246, 246) none repeat scroll 0% 0% / auto padding-box border-box;
font: normal normal normal normal 14px / normal "Open Sans", sans-serif;
padding: 10px 0px;
@andzi
andzi / bem.md
Created September 6, 2016 16:28 — forked from iamstarkov/bem.md
bem
@andzi
andzi / .md
Created September 6, 2016 17:28 — forked from iAdramelk/.md
Длинная телега про Бутстрап

Английская версия: https://evilmartians.com/chronicles/bootstrap-an-intervention

Вводная часть

У CSS есть несколько базовых проблем, которые позволяют очень быстро отстрелить себе ногу при неправильном использовании:

  1. Глобальный неймспейс – в серверном программировании все что написано в файле, в файле и остается. Все же что написано в css и js засирает глобальное пространство имен со всеми вытекающими. В JS эту проблему сейчас побороли всякими модульными системами, а вот с css сложнее. В идеальном мире это должен починить Shadow DOM и настоящие Web Components, но пока их нет единственный способ с этим бороться – следовать какой-то системе именований селекторов, которая по возможности уменьшает и исключает возможные конфликты.

  2. Каскадность – если на один элемент может сработать несколько правил, то они все и сработают последовательно. Если есть элемент h1.title, на него сработают все правила для тегов h1 и все правила для класса .title. Так как весь html состоит из тегов, то правил которые п

@andzi
andzi / exporteps.py
Created September 13, 2016 21:56 — forked from brechtm/exporteps.py
Libre/OpenOffice Draw script to bulk export figures
# Libre/OpenOffice: Export selected or all figures as EPS
# 2010 Brecht Machiels
#
# Usage:
# - drop script in user scripts folder
# Max OSX: $HOME/Library/Application Support/LibreOffice/4/user/scripts/python/
# (Arch) Linux: $HOME/.config/libreoffice/4/user/Scripts/python/
# other Linux: $HOME/.libreoffice/4/user/Scripts/python/
# Windows: C:\Document and Settings\<username>\Application Data\libreoffice\4\user\Scripts\python
# - start Draw and draw some figures
<?
/////////////////////
// slack2html
// by @levelsio
/////////////////////
//
/////////////////////
// WHAT DOES THIS DO?
/////////////////////
//
@andzi
andzi / GMailReminder.gs
Created July 26, 2017 14:06 — forked from kshwetabh/GMailReminder.gs
Reminder script for GMail: A simple Google Apps Script to create a Google Calendar event (reminder) for any mail (with a specific label). You can then setup ("timed") triggers in Apps Script... (public version of the GMailReminder gist)
/**
* Reminder script for GMail: A simple Google Apps Script to create a Google Calendar event (reminder) for any mail (with a
* specific label). You can then setup ("timed") triggers in Apps Script (hourly, etc) to monitor your Inbox.
* How to Use:
* 1. Log into Google Drive account and create a Google Script.
* 2. Copy and paste the below snippet into the gs file.
* 3. Make sure to update the 'reminderLabel', 'calendarName' and 'reminderDuration' as per your preference.
* 4. Test the script to make sure it is working properly.
* 5. Setup a time-driven Project Trigger (hourly, etc) to automatically run this script and create calendar events.
*
@andzi
andzi / README-Template.md
Last active August 3, 2017 22:59 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Build Status Code Climate

Note: This project is under development. It is not yet ready for production use.

Project Title

One Paragraph of project description goes here

Getting Started