Skip to content

Instantly share code, notes, and snippets.

View ildarkhasanshin's full-sized avatar
🚀
eat sleep code repeat

ildar r. khasanshin ildarkhasanshin

🚀
eat sleep code repeat
View GitHub Profile
@ildarkhasanshin
ildarkhasanshin / JavaScript.sublime-build
Created September 29, 2016 16:14 — forked from corbanb/JavaScript.sublime-build
Sublime Text - Tools > Build System > New Build System
// Sublime Text - Build System for Javascript
{
"cmd": ["node", "$file"],
"selector": "source.js"
}
@ildarkhasanshin
ildarkhasanshin / css3pulsingcirle
Created April 21, 2017 15:40 — forked from bbrewer97202/css3pulsingcirle
Simple CSS3 pulsing circle animation
<html>
<head>
<title></title>
</head>
<body>
<div id="pulser">
<div class="pulse pulse1"></div>
<div class="pulse pulse2"></div>
<div class="pulse pulse3"></div>
@ildarkhasanshin
ildarkhasanshin / screenshare
Created February 4, 2018 15:56 — forked from Saicheg/screenshare
Share screenshots on Ubuntu using Dropbox
#!/bin/bash
################
# Description:
# This script will take screenshot of your desktop
# or only active window ( running with -u param ),
# copy it to /Dropbox/Public/share/ with uniq name
# and save path to clipboard
#################
# Requirements:
# Dropbox
<input type="checkbox" name="chk_group[]" value="value1" />Value 1<br />
<input type="checkbox" name="chk_group[]" value="value2" />Value 2<br />
<input type="checkbox" name="chk_group[]" value="value3" />Value 3<br />
@ildarkhasanshin
ildarkhasanshin / xdebug-php.md
Created March 19, 2018 18:57 — forked from ankurk91/xdebug-mac.md
php xDebug on Ubuntu/Mac and phpStorm 2017

🪲 Install and Configure xDebug on Ubuntu/Mac and PhpStorm 🐘

  • Assuming that you have already installed php and apache
  • Install xDebug php extension
# Ubuntu 16.04, php 7.0
sudo apt-get install php-xdebug

# Ubuntu 14.04, php 5.6 
sudo apt-get install php5-xdebug
// ==UserScript==
// @name Trello Red Hat Bugzilla Integration
// @namespace http://jarrpa.net
// @version 0.4
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js
// @description Looks for card titles with 'Bug \d+' and adds badge/links to bugzilla. Also autocompletes card titles that contain 'Bug \d+' from bugzilla. Autocomplete is actived when pressing `:` after 'Bug \d+'. Originally based on https://github.com/cmadsen/TrelloBugzilla
// @match https://trello.com/*
// @copyright 2012+, Carsten Madsen and Luke Brooker
// @copyright 2014, Jose A. Rivera
// @grant GM_xmlhttpRequest
<?
define('LOG_FILENAME', __DIR__.'/log/'.date('Ymd').'.log');
require_once($_SERVER["DOCUMENT_ROOT"].'/bitrix/modules/main/include/prolog_before.php');
use Bitrix\Main\Loader;
Loader::includeModule("iblock");
Uplab\Helper::loadMainMsg();
use Bitrix\Main\Localization\Loc;
<!-- for result_modifier.php -->
@ildarkhasanshin
ildarkhasanshin / wordpress-plugin-svn-to-git.md
Created May 19, 2018 20:51 — forked from kasparsd/wordpress-plugin-svn-to-git.md
Using Git with Subversion Mirroring for WordPress Plugin Development
@ildarkhasanshin
ildarkhasanshin / 1. main.css
Created June 3, 2018 19:23 — forked from EmranAhmed/1. main.css
CSS Responsive breakpoint, Media Query break point
/*==================================================
= Bootstrap 3 Media Queries =
==================================================*/
/*========== Mobile First Method ==========*/
/* Custom, iPhone Retina */
@media only screen and (min-width : 320px) {
}
<?
require($_SERVER["DOCUMENT_ROOT"] . "/bitrix/header.php");
$APPLICATION->SetTitle("Экспорт списка юзеров и получателей рассылок");
$expSubscribesFile = 'subscribes.csv';
$expUsersFile = 'users.csv';
$strDlmtr = ';';
$lineDlmtr = "\n";
$arUsers = array('#,Фамилия,Имя,Отчество,EMail');