Skip to content

Instantly share code, notes, and snippets.

@oneillci
oneillci / manage local branch
Created June 6, 2022 06:00
Fetches remote main branch changes and merges them into current feature branch
git fetch origin main
git merge origin/main
@oneillci
oneillci / gist:71cd95b75b1446c1a8cc6e2da3006b86
Created February 26, 2020 06:44
Windows Terminal Profile
// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"defaultProfile": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
"globals": {
@oneillci
oneillci / app.html
Created May 8, 2019 23:38 — forked from bigopon/app.html
Converter signal
<template>
<require from='./value-converter'></require>
<require from='./clock.html'></require>
<div>
Change locale to
<div>
<button
repeat.for='locale of locales'
click.delegate='changeLocale(locale.locale)'>${locale.name}</button>
interface Person {
name: string;
age: number;
location: string;
}
type K1 = keyof Person; // "name" | "age" | "location"
type K2 = keyof Person[]; // "length" | "push" | "pop" | "concat" | ...
type K3 = keyof { [x: string]: Person }; // string
@oneillci
oneillci / app.html
Last active October 20, 2017 05:35
Aurelia view port
<template>
<h1>${message}</h1>
<button click.delegate="go()">go to second</button>
<router-view></router-view>
<router-view name="secondary"></router-view>
</template>
@oneillci
oneillci / app.html
Created October 19, 2017 03:32
Inheritance problem
<template>
<require from="./my-control"></require>
<require from="./my-other"></require>
<h1>${message}</h1>
<my-control></my-control>
<br/>
<my-other></my-other>
</template>
@oneillci
oneillci / app.html
Created October 15, 2017 22:00 — forked from JeroenVinke/app.html
Grid: detail template
<template>
<require from="aurelia-kendoui-bridge/grid/grid"></require>
<require from="aurelia-kendoui-bridge/grid/col"></require>
<require from="aurelia-kendoui-bridge/common/template"></require>
<ak-grid k-data-source.bind="datasource"
k-pageable.bind="pageable"
k-sortable.bind="true"
k-on-data-bound.delegate="onDataBound($event.detail)"
k-on-detail-init.delegate="detailInit($event.detail)">
@oneillci
oneillci / app.html
Last active October 15, 2017 22:00 — forked from JeroenVinke/app.html
Grid: detail template
<template>
<require from="aurelia-kendoui-bridge/grid/grid"></require>
<require from="aurelia-kendoui-bridge/grid/col"></require>
<require from="aurelia-kendoui-bridge/common/template"></require>
<ak-grid k-data-source.bind="datasource"
k-pageable.bind="pageable"
k-sortable.bind="true"
k-on-detail-init.delegate="detailInit($event.detail)">
<ak-col k-title="First Name" k-field="FirstName"></ak-col>
@oneillci
oneillci / app.html
Last active October 11, 2017 01:17
Inheritance problem
<template>
<require from="./my-control"></require>
<require from="./my-other"></require>
<h1>${message}</h1>
<my-control></my-control>
<br/>
<my-other></my-other>
</template>
@oneillci
oneillci / gist:99cd063e4c2df8ebd635fdb3f903ba4c
Last active February 22, 2018 03:27
Powershell find in files, count of lines in files
Get-ChildItem -Recurse -Include *.* | Select-String "column-flex-container"
// Get could of lines in files of type
(dir -include *.scss -recurse | select-string .).Count
or
Get-ChildItem -Filter "*.cs" -Recurse | Get-Content | Measure-Object -line
// Get count of files of type
(dir -include *.ts -recurse).Count
or