View streamlabs-chatbox.js
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
// makes streamlabs ChatBox username colors less saturated and brighter | |
document.addEventListener('onEventReceived', function(obj) { | |
const container = document.querySelector(`[data-id="${obj.detail.messageId}"]`); | |
const message = container.querySelector('.meta'); | |
const colorString = message.style.color; | |
// never regex! ever! :] | |
const r = Number(colorString.split('(')[1].split(',')[0]); | |
const g = Number(colorString.split(',')[1].trim()); | |
const b = Number(colorString.split(',')[2].split(')')[0].trim()); | |
const {h, s, l} = rgbToHsl(r, g, b); |
View utility-whitespace.scss
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
// whitespace | |
$whitespace: 1rem; | |
$whitespace-types: ( | |
( 'short': p, 'long': padding ), | |
( 'short': m, 'long': margin ) | |
); | |
$whitespace-directions: ( | |
( 'name': t, 'prop': top ), |
View init.coffee
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
# 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 -> |
View shuffle.js
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
var arr = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] | |
function shuffle(arr) { | |
arr.forEach((ele, index) => { | |
var randomIndex = Math.floor(Math.random() * arr.length) | |
arr[index] = arr[randomIndex] | |
arr[randomIndex] = ele | |
}) | |
return arr |
View fake switch
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
var fakeSwitch = { | |
test0: function() {}, | |
test1: function() {}, | |
test2: function() {}, | |
test3: function() {}, | |
test4: function() {} | |
} | |
function testFakeSwitch(item) { | |
fakeSwitch[item]() |
View stringPlate.cfc
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
var demo = { | |
name: 'test', | |
func: function() { | |
return 'demo' | |
} | |
} | |
var string = '{{demo.description}} {({testdemo})}' | |
function stringPlate(str, data, startSymbol, endSymbol) { |
View Tape Snippets
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
# Your snippets | |
# | |
# Atom snippets allow you to enter a simple prefix in the editor and hit tab to | |
# expand the prefix into a larger code block with templated values. | |
# | |
# You can create a new snippet in this file by typing "snip" and then hitting | |
# tab. | |
# | |
# An example CoffeeScript snippet to expand log to console.log: | |
# |
View crazy.html
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
<nav> | |
<menu> | |
<menuitem><a>Home</a></menuitem> | |
<menuitem> | |
<a>More</a> | |
<menu> | |
<menuitem> | |
<a>Even More</a> | |
<menu> | |
<menuitem> |
View autoladda.js
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
j$(function(){ | |
j$('.ladda-button').each(function(){ | |
if(!j$(this).children('.ladda-label')){ | |
j$(this).html('<span class="ladda-label">'+j$(this).html()+'</span>'); | |
} | |
if(!j$(this).attr('data-style')){ | |
j$(this).attr('data-style', 'slide-up'); | |
} | |
}); |
View Generated CSS
This file has been truncated, but you can view the full file.
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
html, body{ | |
background:#222; | |
margin:0; | |
padding:0; | |
height:100%; | |
} | |
body{ |
NewerOlder