Skip to content

Instantly share code, notes, and snippets.

View bolshchikov's full-sized avatar
🌐

Sergey Bolshchikov bolshchikov

🌐
View GitHub Profile

Git Workshop

Goal: obtain intimate low-level knowledge of git commands and understanding

Local

  1. Intro
    1. Skip

Hey there,

Are you familiar with BrainFuck language? No? It's simple. It's a esoteric programming language that consists only of the following chars: +, -, <, >, [, ]

But we are JavaScript fan boys and girls. We want to crete our own.

Creating JS Fuck grammar

We want to create our own awesome esoteric language using only the following valid JS chars: [, ], (, ), ! and +

@bolshchikov
bolshchikov / Microsoft.PowerShell_profile.ps1
Created June 4, 2019 08:50
PowerShell profile for Gamma-cli (Orbs)
Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Scope CurrentUser
New-Alias gamma-cli 'C:\Program Files\gammacli-windows-v0.7.0\_bin\gamma-cli.exe'
@bolshchikov
bolshchikov / settings.json
Created June 4, 2019 08:37
VSCode partial UI settings for FireFont
{
"workbench.colorTheme": "GitHub Sharp",
"editor.minimap.enabled": false,
"editor.tokenColorCustomizations": {
"textMateRules": [
{
"scope": [
//following will be in italic (=FlottFlott)
"comment",
"entity.name.type.class", //class names
@bolshchikov
bolshchikov / .jshintrc
Last active March 4, 2024 12:19
JSHint configuration file
{
// --------------------------------------------------------------------
// JSHint Configuration, Strict Edition
// --------------------------------------------------------------------
// == Enforcing Options ===============================================
//
// These options tell JSHint to be more strict towards your code. Use
// them if you want to allow only a safe subset of JavaScript, very
@bolshchikov
bolshchikov / gist:8069009
Last active January 1, 2016 00:49
Creating read-only JS object
// lo-dash lib is the dependency
function readOnly(target){
var _readOnly = function (target, acc) {
// acc is passed into the function to be used for observer
var _defineProperty = function (propName, target, acc) {
var i, len;
// operation to be performed when add occurred
@bolshchikov
bolshchikov / gist:7363304
Created November 7, 2013 22:54
Ember SelectionMixin
var SelectionMixin = Ember.Mixin.create({
init: function() {
this.get(this.get('itemClassName')).reopen({
classNameBindings: ['isSelected:selected'],
isSelected: false,
click: function(ev) {
ev.stopImmediatePropagation();
this.get('parentView').handleSelection(ev, this);
}
});
@bolshchikov
bolshchikov / case
Last active December 17, 2015 18:49
Live templates for JetBrains WebStrorm. The name of a gist is the registered abbreviation.
case '$STATEMENT$':
$END$
break;