Skip to content

Instantly share code, notes, and snippets.

View cedec1985's full-sized avatar
🏠
Working from home

Cédric De Craim cedec1985

🏠
Working from home
View GitHub Profile
@cedec1985
cedec1985 / gitbash.png
Created September 21, 2025 16:40
Guide utilisation basique de Git LFS dans GitBash
git lfs install => result = Updated Git hooks, Git LFS initialized
git lfs track "*.pack" "*.zip" => result = tracking "*.pack" tracking "*.zip"
git add .gitattributes
=> result = .pack filter=lfs diff=lfs merge=lfs -text
.zip filter=lfs diff=lfs merge= lfs -text
git add filename.zip
git commit -m "update file with Git LFS"
git push origin main
git lfs ls-files => result = To show the tracked files
@cedec1985
cedec1985 / form.spec.ts
Created September 8, 2025 16:08
form file in typescript and the spec test file
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { FormsModule, NgForm, ReactiveFormsModule } from '@angular/forms';
import { By } from '@angular/platform-browser';
import { FormComponent } from './form';
describe('FormComponent', () => {
let component: FormComponent;
let fixture: ComponentFixture<FormComponent>;
beforeEach(async () => {