Skip to content

Instantly share code, notes, and snippets.

[
{
"product": "Wordpress",
"parameters": {
"site-name": "wp4",
"app-pool-name": "DefaultAppPool",
"db-engine": "mysql",
"db-host": "localhost",
"db-port": "3306",
"db-username": "ывс",
@rukeba
rukeba / example_component.js
Created March 16, 2015 09:38
Example Component
jQuery(function ($) {
window.ExampleComponent = {
$placeholder: $('.js-component-placeholder'),
$item: $('.js-component-item'),
$btn_submit: $('.js-btn-component-submit'),
init: function () {
this.load_something();
@rukeba
rukeba / download.cmd
Created November 15, 2015 21:56
Download list of urls from text file
for /f %%i in (list.txt) do (
powershell.exe -Command "(new-object System.Net.WebClient).DownloadFile('%%i', '%%~nxi')"
)
@rukeba
rukeba / test-task.md
Last active December 16, 2016 16:53
Тестовое задание на позицию фронтенд разработчик

Сделать SPA c поиском репозиториев на github.com.

Экран поиска

Урл: #
Форма поиска - текстовое поле и кнопка.

Экран результатов поиска

Урл: #search//page/

@rukeba
rukeba / console.js
Created August 12, 2018 09:16
500px: Mark followers in following list
// open followers popup
var followers = [];
jQuery('.follower_modal .actor .name').each(function(i, el){
followers.push(jQuery(el).attr('href'))
});
// close followers popup
// open following popup
@rukeba
rukeba / form-api-service.js
Last active December 19, 2018 06:53
Models/Collections vs API Service
class FormApiService {
get_form_list() {
return this.$http
.get('api/form-manager')
.then( ({body}) => body)
.then( ({data}) => ...)
}
get_form( form_id ) {
@rukeba
rukeba / readme.md
Last active February 22, 2019 15:25
Задание для фронтенд разработчика

Сделать веб приложение «Погода в городе»

Задание

Сделать веб приложение, которое находит и показывает текущую погоду для любого города.

UI

Форма для ввода названия города. Кнопка «показать погоду». Для стилизации желательно использовать UI-фреймворк.

#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Repository: https://github.com/h-otter/zabbix-slackpy
from json import loads
from json import dumps
from sys import argv
import re
@rukeba
rukeba / find_first_duplcate_in_seq.py
Last active April 22, 2020 10:02
#2837 Senior Full-stack Python / Javascript Developer
import random
def generate_seq(length, min, max):
"""
Generate sequence of random integer numbers
:param length: length of sequence
:param min: minimal value of random number
:param max: max value of random number
:return:
// check driver status:
// https://localhost:41951/DYMO/DLS/Printing/StatusConnected
// https://127.0.0.1:41951/DYMO/DLS/Printing/StatusConnected
// list connected printers:
// https://localhost:41951/DYMO/DLS/Printing/GetPrinters
// https://127.0.0.1:41951/DYMO/DLS/Printing/GetPrinters
var labelXml = `
<DieCutLabel Version="8.0" Units="twips">