Skip to content

Instantly share code, notes, and snippets.

// refactored
const rotate_left = (n, s) => {
let t4 = (n << s) | (n >>> (32 - s))
return t4
}
const lsb_hex = (val) => { // this doesn't seem to be used anywhere ???
let str = ''
for (let i = 0; i <= 6; i += 2) {
$.ajax({
// ...
}).fail(function(response){
window.Flash(response.message, 'error', $('.some-class-container'))
})
// ..helpers/flash_helpers.js
window.Flash = function (message, type, $container) {
$container = ($container == null) ? $('.container-fluid.container-page') : $container
# Keybindings
unbind c
unbind C-b
unbind C-a
unbind %
unbind ,
unbind .
unbind n
unbind p
unbind '"'