Skip to content

Instantly share code, notes, and snippets.

View ezarya's full-sized avatar

Yauheni Zara ezarya

  • Bolt Technology
  • Warsaw, Poland
View GitHub Profile
@ezarya
ezarya / components.my-form\.js
Created November 11, 2020 10:55
New Twiddle
import Component from '@glimmer/component';
import { action } from "@ember/object";
export default class extends Component {
get model() {
return this.args.model;
}
@action
onUpdate() {
import Component from '@glimmer/component';
import { action } from "@ember/object";
import { tracked } from "@glimmer/tracking";
export default class extends Component {
@tracked
a = 1;
@tracked
b = 2;
@ezarya
ezarya / components.my-component\.js
Last active September 4, 2020 11:27
New Twiddle
import Component from '@glimmer/component';
import { tracked } from '@glimmer/tracking';
import { action } from "@ember/object";
export default class extends Component {
@tracked
greeting = 'Yield';
constructor() {
super(...arguments);
import Component from '@glimmer/component';
import { tracked } from '@glimmer/tracking';
export default class extends Component {
@tracked
greeting = 'Yield';
}
@ezarya
ezarya / components.input-test.js
Last active December 4, 2019 12:46
Test input
import Ember from 'ember';
export default Ember.Component.extend({
input: '',
actions: {
onKeyUp(input, event) {
this.set('input', '123');
// alert(this.get('input')
}
}
@ezarya
ezarya / keybindings.json
Last active May 17, 2017 06:10
Key bindings for VSCode
// Place your key bindings in this file to overwrite the defaults
[
{ "key": "ctrl+alt+cmd+f", "command": "workbench.action.toggleZenMode" },
{ "key": "cmd+u", "command": "editor.action.transformToUppercase" },
{ "key": "cmd+shift+u", "command": "editor.action.transformToLowercase" }
]
@ezarya
ezarya / settings.json
Created May 16, 2017 17:20
VSCode config
// Place your settings in this file to overwrite the default settings
{
"editor.fontFamily": "Fira Code",
"editor.fontSize": 11,
"editor.fontLigatures": true,
"editor.renderIndentGuides": true,
"editor.renderWhitespace": "all",
"editor.snippetSuggestions": "top",
"editor.tabSize": 4,
"editor.mouseWheelScrollSensitivity": 1,
@ezarya
ezarya / app.js
Created October 11, 2016 20:41 — forked from hagino3000/app.js
JSON-RPC for node (express)
/**
* Module dependencies.
*/
var express = require('express');
var rpcMethods = require('./methods.js');
var app = module.exports = express.createServer();
// Configuration
@ezarya
ezarya / index.html
Created April 23, 2015 19:27
Font Animation Test // source http://jsbin.com/cenevodopu
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Font Animation Test</title>
<style>
.container {
background: blue;
position: absolute;
@ezarya
ezarya / index.html
Created February 1, 2015 12:50
Several Key Frame Animations Issue // source http://jsbin.com/vapuha
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Several Key Frame Animations Issue</title>
<style>
@-webkit-keyframes short {
from {
transform: translate3d(0, 100px, 0);
}