This file has been truncated, but you can view the full file.
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
html, body{ | |
background:#222; | |
margin:0; | |
padding:0; | |
height:100%; | |
} | |
body{ | |
display:flex; |
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
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'); | |
} | |
}); |
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
<nav> | |
<menu> | |
<menuitem><a>Home</a></menuitem> | |
<menuitem> | |
<a>More</a> | |
<menu> | |
<menuitem> | |
<a>Even More</a> | |
<menu> | |
<menuitem> |
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 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: | |
# |
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
var demo = { | |
name: 'test', | |
func: function() { | |
return 'demo' | |
} | |
} | |
var string = '{{demo.description}} {({testdemo})}' | |
function stringPlate(str, data, startSymbol, endSymbol) { |
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
var fakeSwitch = { | |
test0: function() {}, | |
test1: function() {}, | |
test2: function() {}, | |
test3: function() {}, | |
test4: function() {} | |
} | |
function testFakeSwitch(item) { | |
fakeSwitch[item]() |
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
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 |
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
// whitespace | |
$whitespace: 1rem; | |
$whitespace-types: ( | |
( 'short': p, 'long': padding ), | |
( 'short': m, 'long': margin ) | |
); | |
$whitespace-directions: ( | |
( 'name': t, 'prop': top ), |
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
// 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); |
OlderNewer