Skip to content

Instantly share code, notes, and snippets.

View cas4ey's full-sized avatar

Victor Zarubkin cas4ey

  • Self-employed
  • Remotely-Worldwide
View GitHub Profile
@cas4ey
cas4ey / compile-time-crc32.cc
Created August 20, 2018 14:17 — forked from oktal/compile-time-crc32.cc
Compile-time C++ CRC32
constexpr unsigned int crc32_table[] = {
0, 0x77073096, 0xEE0E612C, 0x990951BA,
0x076DC419, 0x706AF48F, 0xE963A535, 0x9E6495A3,
0x0EDB8832, 0x79DCB8A4, 0xE0D5E91E, 0x97D2D988,
0x09B64C2B, 0x7EB17CBD, 0xE7B82D07, 0x90BF1D91,
0x1DB71064, 0x6AB020F2, 0xF3B97148, 0x84BE41DE,
0x1ADAD47D, 0x6DDDE4EB, 0xF4D4B551, 0x83D385C7,
0x136C9856, 0x646BA8C0, 0xFD62F97A, 0x8A65C9EC,
0x14015C4F, 0x63066CD9, 0xFA0F3D63, 0x8D080DF5,
0x3B6E20C8, 0x4C69105E, 0xD56041E4, 0xA2677172,
@cas4ey
cas4ey / electron.js
Last active April 6, 2018 15:28
React + Electron
const electron = require('electron');
const app = electron.app;
const BrowserWindow = electron.BrowserWindow;
const path = require('path');
const url = require('url');
const isDev = require('electron-is-dev');
let mainWindow;
# This Gist contains several files
# with linux commands hints/cheatsheet
#
# Click 'View linux.hints.0.sh' to view
# all files in this Gist.
#
@cas4ey
cas4ey / .gitconfig
Last active August 16, 2023 06:41
Git config
global .gitconfig
------------------------
[user]
name = George Bush # User name displayed in commits
email = mail@email.com # User email attached to every commit
[push]
default = current # git push current branch only (also sets upstream to the same branch at origin)
autoSetupRemote = true # automatically --set-upstream # atcually not working
[pull]