Skip to content

Instantly share code, notes, and snippets.

@Mikxail
Mikxail / async-to-q.js
Last active August 29, 2015 14:09 — forked from wavded/async-to-q.js
var fs = require('fs')
var Q = require('q')
var fs_stat = Q.denodeify(fs.stat)
var fs_readdir = Q.denodeify(fs.readdir)
var files = [
'./fixtures/file1',
'./fixtures/file2',
'./fixtures/file3',
'./fixtures/file4'
@Mikxail
Mikxail / gist:9934672
Created April 2, 2014 13:58
Angular.js change hash in controller withour reload page
$route.current.$$route.reloadOnSearch = false
$location.hash "newHash#{Math.random()}"
$timeout ->
$route.current.$$route.reloadOnSearch = false
, 0
Windows Hotkeys
Ctrl + Escape or Win: Display start menu.
Shift + F10 or AppsKey: Display context menu.
Win + E: Open Windows Explorer.
Win + R: Open Run dialog.
Win + M: Minimize all windows.
Win + Shift + M: Undo minimize all windows.
Win + D: Toggle minimize all windows.
Win + B (XP only): Activate system tray. Arrow keys select, Enter double-clicks, and AppsKey or Shift + F10 right-clicks.
@Mikxail
Mikxail / shortcuts.txt
Created November 14, 2012 14:09 — forked from ashtuchkin/shortcuts.txt
My ubuntu shortcuts.
# Ubuntu keyboard shortcuts
## Global
Alt+F1 : Keyboard focus on launchbar
Alt+F2 : Launch program
Ctrl+Alt+T : Terminal
Win : Search Unity
Alt : Enter Command for current apps & top bar
Ctrl+Alt+Del : Log out
Ctrl+Alt+L : Lock computer
@Mikxail
Mikxail / gist:4072290
Created November 14, 2012 14:07
My hints
### GIT ###
>git commit --amend #изменить описание последнего коммита
>git add file1 file2
>git commit --amend #добавить изменения в коммит
>git stash #спрятать изменения
>git stash list #показать список спрятанных изменений
>git stash apply #применить последнее спрятанное изменение