Skip to content

Instantly share code, notes, and snippets.

@emoryy
emoryy / components.my-component.js
Last active February 12, 2019 14:10
InboundActions - concatenatedProperties
import Ember from 'ember';
import InboundActions from 'ember-component-inbound-actions/inbound-actions';
export default Ember.Component.extend(InboundActions, {
concatenatedProperties: ['x'],
x: ['A'],
classNames: ['A'],
@emoryy
emoryy / components.ext-component.js
Last active February 12, 2019 15:39
ConcatenatedProblem
import MyComponent from './my-component';
export default MyComponent.extend({
x: 'extended',
y: 'extended',
z: 'extended',
classNames: 'extended',
internalProperty: "internal",
@emoryy
emoryy / day16-1.js
Last active December 28, 2021 21:41
Advent of Code 2021
(function() {
'use strict';
const hexa = document.body.firstChild.textContent;
const input = hexa.match(/\w/g).map(num => Number.parseInt(num,16).toString(2).padStart(4,'0')).join('').split('');
console.log("input", input.length, input.join(''));
let pos = 0;
let versionSum = 0;
function dec(bits) {
return Number.parseInt(bits, 2)
}
@emoryy
emoryy / vivaldi-custom.css
Created December 26, 2022 09:41
vivaldi-custom.css
/* multiline tabs */
#tabs-tabbar-container {
height: auto !important;
}
#tabs-tabbar-container.top {
padding-top: 0;
}
@emoryy
emoryy / block.it
Last active May 20, 2023 06:47
block
[Adblock Plus 2.0]
! Version: 1
! Title: Ixian's list
! Expires: 3 days
! Homepage: https://gist.github.com/emoryy/7610203638ea76401a81b50fa3c9ffa2
! Last modified: 17 May 2023 09:00 UTC
! GLOBAL RULES
!
order.mandarake.co.jp##.chead