This file contains hidden or 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
# Your init script | |
# | |
# Atom will evaluate this file each time a new window is opened. It is run | |
# after packages are loaded/activated and after the previous editor state | |
# has been restored. | |
# | |
# An example hack to log to the console when each text editor is saved. | |
# | |
# atom.workspace.observeTextEditors (editor) -> | |
# editor.onDidSave -> |
This file contains hidden or 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
/* | |
let floored = floorNum(1430); //1000 | |
let floored2 = floorNum(1430, 2); //1400 | |
let ceiled = ceilNum(1430); //2000 | |
let ceiled3 = ceilNum(1543, 3); //1550 | |
*/ | |
function floorNum(num, ind){ |
This file contains hidden or 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
function toggleClass(el, _class) { | |
if (el && el.className && el.className.indexOf(_class) >= 0) { | |
var pattern = new RegExp('\\s*' + _class + '\\s*'); | |
el.className = el.className.replace(pattern, ' '); | |
} | |
else if (el){ | |
el.className = el.className + ' ' + _class; | |
} | |
else { | |
console.log("Element not found :(") |
This file contains hidden or 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
// | |
// COLLORO | |
// Colloro - nice bunch of colors, collected from different websites | |
// Bunch collected by Godje | |
// | |
$white: #fff | |
$dwhite: #f3f3f3 | |
$black: #000 |