Skip to content

Instantly share code, notes, and snippets.

<script>
import { createStore } from './fakeRedux.js'
let count = 0
const stateModifiers = {
DECREMENT: () => {
count -= 1
},
INCREMENT: () => {
let previousColor
let previousValue
let timeoutId
const queueUpdate = () => {
if (
previousColor === color
&& previousValue === value
) {
return
<script>
let previousColor
let previousValue
let timeoutId
const queueUpdate = () => {
if (
previousColor === color
&& previousValue === value
function create() {
div = element("div");
t = text(ctx.value);
set_style(div, "color", ctx.color);
set_style(div, "left", "" + ctx.x + "ch");
set_style(div, "position", "absolute");
set_style(div, "top", "" + ctx.y + "em");
add_location(div, file, 47, 0, 754);
}
<div
style="
color: {color};
left: {x}ch;
position: absolute;
top: {y}em;
"
>
{value}
</div>
/* Type the word "exit" in any point of your page... */
(function () {
const sSecret = /* Choose your hidden word...: */ "exit";
let nOffset = 0;
document.onkeypress = function(oPEvt) {
let oEvent = oPEvt || window.event,
nChr = oEvent.charCode,
sNodeType = oEvent.target.nodeName.toUpperCase();
const codeSequenceEpic = (
action$,
) => (
action$
.pipe(
ofType('START_CODE_SEQUENCE_LISTENER'),
mergeMap(({
codeSequence,
}) => (
action$
var store = (
createStore(stateModifiers)
)
store
.subscribe([
initMiddleware,
loadingMiddleware,
])
const stateModifiers = {
UPDATE_IDS: function(action) {
vm.ids = action.ids
},
}
const statelessReduxReducer = (
state,
action,
) => {
var loadingMiddleware = function(action) {
if (action.type === 'GET_IDS') {
dispatch({
type: 'LOADING',
})
}
if (action.type === 'UPDATE_IDS') {
dispatch({
type: 'LOADED',