Skip to content

Instantly share code, notes, and snippets.

@openopen114
openopen114 / fast_delete.bat
Created November 10, 2023 00:41 — forked from Tyxz/fast_delete.bat
Windows bat-script to fast delete a folder and all sub-directories with a cmd command.
@ECHO OFF
CLS
ECHO ######################################
ECHO # Fast delete folder and sub-folders #
ECHO ######################################
ECHO.
ECHO.
set /P c=Delete %CD% [Y/N]?
if /I "%c%" EQU "Y" goto :DELETE
if /I "%c%" EQU "J" goto :DELETE
@openopen114
openopen114 / History\-16d727ee\entries.json
Last active August 1, 2023 03:32
Visual Studio Code Settings Sync Gist
{"version":1,"resource":"file:///d%3A/Angular/test/ag-grid-td-bg-color-test/src/app/my-foorter/my-foorter.component.html","entries":[{"id":"is41.html","timestamp":1690780123264}]}
@openopen114
openopen114 / cloudSettings
Created July 15, 2019 12:07
Visual Studio Code Settings Sync Gist
{"lastUpload":"2019-07-15T12:07:42.427Z","extensionVersion":"v3.4.0"}
@openopen114
openopen114 / tab-trigger.js
Created January 26, 2019 06:03 — forked from wesbos/tab-trigger.js
How to properly get a TAB trigger working with Emmet inside of JSX
{
"keys": ["tab"],
"command": "expand_abbreviation_by_tab",
// put comma-separated syntax selectors for which
// you want to expandEmmet abbreviations into "operand" key
// instead of SCOPE_SELECTOR.
// Examples: source.js, text.html - source
"context": [
{
//HTML
<input type="text" [(ngModel)]="_num"/>
<ul>
<li *ngFor="let item of numList | numFilter:_num">
{{item.po}}
</li>
</ul>
<p>_num:{{_num}}</p>
//new project
ng new gallery
cd gallery
ng g service imgData // generate service
ng g c gallery // generate gallery component
//copy images folder to src/assets
//component.ts
import { Component } from '@angular/core';
declare var foo: any;
import '../assets/foo.js';
@Component({
selector: 'app-root',
//html
<ul id="sidenav" class="side-nav" materialize="sideNav" [materializeParams]="sidenavParams" [materializeActions]="sidenavActions" data-activates="sidenav">
<li><div class="userView">
<div class="background">
<img src="images/office.jpg">
</div>
<a href="#!user"><img class="circle" src="images/yuna.jpg"></a>
<a href="#!name"><span class="white-text name">John Doe</span></a>
<a href="#!email"><span class="white-text email">[email protected]</span></a>
// create json file in assets folder
// in app.module.ts
import { HttpModule } from '@angular/http';
imports: [
BrowserModule,
FormsModule,
HttpModule
],
// cli
ng g service myData
//my-data.service.ts
constructor() { }
obj = {
id:"1",