This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Keybindings | |
unbind c | |
unbind C-b | |
unbind C-a | |
unbind % | |
unbind , | |
unbind . | |
unbind n | |
unbind p | |
unbind '"' |