Skip to content

Instantly share code, notes, and snippets.

View Stmol's full-sized avatar
👨‍🔧
SwiftUI & Flutter

Yury S. Stmol

👨‍🔧
SwiftUI & Flutter
  • Earth
View GitHub Profile
@Stmol
Stmol / jshintrc
Last active October 3, 2018 16:16
My JSHINT options #config
{
"node": true,
"browser": true,
"bitwise": true,
"camelcase": true,
"curly": true,
"eqeqeq": true,
"immed": true,
"indent": 2,
"latedef": true,
@Stmol
Stmol / README.md
Last active October 3, 2018 16:20 — forked from nikcub/README.md
[Facebook Hack Story] #hack
@Stmol
Stmol / webrtc.js
Created October 1, 2013 15:40 — forked from coderaiser/webrtc.js
/*
* пример использования WebRTC
* http://rastacoding.kodingen.com/webrtc
*/
(function(){
'use strict'
/* определяем вариант функции getUserMedia в зависимости от браузера */
navigator.getUserMedia = navigator.getUserMedia || /* версия, которая останется */
navigator.webkitGetUserMedia || /* chrome и safari */
@Stmol
Stmol / swap
Created September 22, 2013 13:48
Swap letters on Ru-En keyboard
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
</head>
<body>
<input type="text" id="issue" value="">
<input type="button" id="convert" value="Convert">
@Stmol
Stmol / l2datdec.php
Created August 29, 2013 20:08
Lineage 2 dat files decoder. Author: Hint aka Ilya
<?php
/**
* L2 file decoder (4 october 2011).
* @author Hint aka Ilya
*/
function decode($filename, $original = true)
{
$file = @file_get_contents($filename);
@Stmol
Stmol / View.php
Last active October 3, 2018 16:15
Native simple PHP template engine
<?php
class View
{
/** @var string Path to template */
protected $_path;
/** @var array Variables for template */
public $_var = array();
@Stmol
Stmol / backup.sh
Last active December 17, 2015 04:28
Simple backup through rsync
#!/bin/bash
DIST_DIR="/Volumes/Stmol HDD/Backup"
if [ ! -d "$DIST_DIR" ]; then
echo "-- Error: Directory $DIST_DIR not found"
exit
fi
echo "-- Start backuping to $DIST_DIR"