Skip to content

Instantly share code, notes, and snippets.

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

Anton Kuznetsov isnifer

🏠
Working from home
  • SpicyAI
  • Yerevan, Armenia
  • 16:56 (UTC +04:00)
View GitHub Profile
<ul class="pages">
<li class="pages__item">
<a href="{{$parent.Page['@attributes'].url}}" class="pages__link">{{$parent.Page['@attributes'].title}}</a>
<div class="pages__subtree" ng-repeat="Page in $parent.Page.Page">
<div ng-include src="'templates/pages.html'"></div>
</div>
</li>
</ul>
@isnifer
isnifer / index.php
Created August 9, 2013 12:20
Bad practice
onclick="if(this.checked){ document.getElementById('county_tr').style.display=''; document.getElementById('district_tr').style.display='none'; document.getElementById('city_tr').style.display='none';}else{ document.getElementById('county_tr').style.display='none'; document.getElementById('district_tr').style.display=''; document.getElementById('city_tr').style.display='';}"
@isnifer
isnifer / gist:6193213
Last active December 20, 2015 20:49
И уж тем более никогда не делайте так
<script type="text/javascript">
$(function() {
var availableTags = [
<? foreach($arItems as $arItem):?>
{label: "<?=$arItem['NAME']?>", value: "<?=substr($arItem['XML_ID'], 3)?>"},
<? endforeach;?>
});
</script>
@isnifer
isnifer / index.php
Created August 9, 2013 13:03
Перестраховался чувак
$(document).ready(function()
{
$(window).load(function ()
{
PrevPlaceSet('',535);
});
});
@isnifer
isnifer / pifagor.html
Last active August 29, 2015 13:58
Таблица Пифагора
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Pifagor</title>
<style>
body{
margin: 0;
padding: 50px;

Keybase proof

I hereby claim:

  • I am isnifer on github.
  • I am isnifer (https://keybase.io/isnifer) on keybase.
  • I have a public key whose fingerprint is 51CD 2526 5294 5301 A47C 650E B3DC FBE5 10D1 CD10

To claim this, I am signing this object:

{
"always_show_minimap_viewport": true,
"bold_folder_labels": true,
"caret_extra_width": 2,
"color_scheme": "Packages/Colorcoder/Seti_monokai (SL) (Colorcoded) (Colorcoded) (Colorcoded).tmTheme",
"draw_white_space": "selection",
"ensure_newline_at_eof_on_save": true,
"font_face": "Roboto Mono",
"font_size": 10,
"highlight_line": true,
var webpack = require('webpack');
var path = require('path');
module.exports = {
devtool: 'eval',
entry: [
'webpack-dev-server/client?http://localhost:3000',
'webpack/hot/only-dev-server',
'./static/jsx/app.js'
],
@isnifer
isnifer / app.js
Last active August 29, 2015 14:24
import 'babel/polyfill';
import 'isomorphic-fetch';
import React from 'react';
import Router from 'react-router';
import FluxComponent from 'flummox/component';
import Flux from '../flux';
import routes from './routes';
import '../less/main.less';
<div>
<validation-tip></validation-tip>
<button class="button button_big button_positive" type="submit" data-validation-tip
data-ng-click="saveStep1(DocumentForm)"
data-ng-class="{'button_disable': isInvalidForm(DocumentForm),
'button_preload': InventoryModel.sending}"
data-qa="Asset.Step1.Save">
{{ InventoryModel.submitBtnTitle }}
</button>
</div>