This is unmaintained, please visit Ben-PH/spacemacs-cheatsheet
SPC q q
- quitSPC w /
- split window verticallySPC w
- - split window horizontallySPC 1
- switch to window 1SPC 2
- switch to window 2SPC w c
- delete current window
import java.security.InvalidKeyException; | |
import java.security.NoSuchAlgorithmException; | |
import java.security.SignatureException; | |
import java.util.Formatter; | |
import javax.crypto.Mac; | |
import javax.crypto.spec.SecretKeySpec; | |
/** |
=> def - Definición de un macro | |
Ejemplo: | |
(def nomSimbolo "Texto") | |
=> ns - Definición de una namespace | |
Ejemplo: | |
(ns namespace1) | |
Variantes: | |
:use - Importa al namespace otro namespace | |
Ejemplo: |
## Ref: http://www.qtcentre.org/threads/27130-Rotate-QGraphicsProxyWidget-in-QGraphicsView | |
#include <QtGui> | |
int main(int argc, char *argv[]) | |
{ | |
QApplication a(argc, argv); | |
QGraphicsView gv; | |
QGraphicsScene scene(-200,-200,400,400); | |
gv.setScene(&scene); |
// | |
// extract_youtube_id.m | |
// TestRegex | |
// | |
// Created by zdk on 1/8/2013 BE. | |
// Copyright (c) 2013 zdk. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> |
-- Decoding | |
SELECT CONVERT_FROM(DECODE(field, 'BASE64'), 'UTF-8') FROM table; | |
-- Encoding | |
SELECT ENCODE(CONVERT_TO(field, 'UTF-8'), 'base64') FROM table; |
This is unmaintained, please visit Ben-PH/spacemacs-cheatsheet
SPC q q
- quitSPC w /
- split window verticallySPC w
- - split window horizontallySPC 1
- switch to window 1SPC 2
- switch to window 2SPC w c
- delete current windowimport { combineReducers } from 'redux'; | |
import users from './reducers/users'; | |
import posts from './reducers/posts'; | |
export default function createReducer(asyncReducers) { | |
return combineReducers({ | |
users, | |
posts, | |
...asyncReducers | |
}); |
I have two Github accounts: oanhnn (personal) and superman (for work). I want to use both accounts on same computer (without typing password everytime, when doing git push or pull).
Use ssh keys and define host aliases in ssh config file (each alias for an account).
on alacritty_win() | |
set _running to (application "Alacritty" is running) | |
tell application "Alacritty" to activate | |
tell application "System Events" | |
repeat while (name of first application process whose frontmost is true) is not "alacritty" | |
delay 0.05 | |
end repeat | |
set _alacritty to first application process whose frontmost is true | |
-- If Alacritty was running, create a new window to run command |