Skip to content

Instantly share code, notes, and snippets.

Tanguy Krotoff tkrotoff

Block or report user

Report or block tkrotoff

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
tkrotoff /
Created May 3, 2020
CSS Frameworks (Bootstrap, Tailwind CSS, Bulma, React Bootstrap, Chakra UI, Ant Design)
tkrotoff /
Last active Mar 28, 2020
How I structure my tests

File structure

  • src/fooBar.js
  • src/fooBar.html
  • src/fooBar.scss
  • src/fooBar....
  • src/fooBar.test.js => npm run test
  • src/fooBar.test.e2e.js (if I have E2E tests - Puppeteer, Playwright...) => npm run test:e2e

Tests should not be separated from the source code (think autonomous modules).

tkrotoff /
Last active Jun 2, 2020
Front-end frameworks popularity (React, Vue and Angular)

As of 2019/12/12

Findings: React is by far the most popular front-end framework (and continues to grow faster), except for the GitHub stars. In addition, React is more loved and "wanted" than other front-end frameworks (although it is more used: satisfaction tends to decrease with popularity).

Charts are from different sources and thus colors are inconsistent, read the chart's legends instead.

NPM downloads

tkrotoff / RemoveWin10DefaultApps.ps1
Last active May 12, 2020
Remove Windows 10 default apps
View RemoveWin10DefaultApps.ps1
# See Remove default Apps from Windows 10
# See Debloat Windows 10
# Command line to list all packages: Get-AppxPackage -AllUsers | Select Name, PackageFullName
Get-AppxPackage Microsoft.Windows.ParentalControls | Remove-AppxPackage
Get-AppxPackage Windows.ContactSupport | Remove-AppxPackage
Get-AppxPackage Microsoft.Xbox* | Remove-AppxPackage
Get-AppxPackage microsoft.windowscommunicationsapps | Remove-AppxPackage # Mail and Calendar
#Get-AppxPackage Microsoft.Windows.Photos | Remove-AppxPackage
Get-AppxPackage Microsoft.WindowsCamera | Remove-AppxPackage
tkrotoff /
Last active Aug 29, 2015
Popular CSS Grids

Most popular CSS grids as of February 2015


  • Stars: 77643
  • Columns: 12 by default
  • Syntax: "row", "col-md-1", "col-xs-12 col-md-8"


  • Stars: 19381
  • Columns: 12
tkrotoff / ExecutionTimer.cs
Last active Dec 29, 2016
Simplifies the use of System.Diagnostics.Stopwatch
View ExecutionTimer.cs
using System;
using System.Diagnostics;
/// <summary>
/// Simplifies the use of System.Diagnostics.Stopwatch.
/// </summary>
/// <example>
/// <code>
/// var timer1 = ExecutionTimer();
/// computeSomething();
tkrotoff / Log.cs
Created Apr 11, 2013
Enhancements for C# System.Diagnostics.Trace: add class and method names to the trace message
View Log.cs
namespace Log
/// <summary>
/// Helps you trace the execution of your code.
/// </summary>
/// <remarks>
/// Same as System.Diagnostics.Trace but adds the class and method names to the trace message.<br/>
/// <br/>
/// More documentation about Trace and Debug:<br/>
/// <list type="bullet">
tkrotoff / event.rb
Created Oct 9, 2012
Rails JSON serialization and deserialization
View event.rb
class Event < ActiveRecord::Base
include EventJSON
attr_accessible *EventJSON.attributes
validates :starts_at, presence: true
validates :ends_at, presence: true
validates :all_day, inclusion: { in: [true, false] }
tkrotoff / svndumpfilter.rb
Last active Sep 30, 2015
A simple regexp to manipulate svn dump files
View svndumpfilter.rb
#!/usr/bin/env ruby
# A simple regexp to manipulate svn dump files.
# Example of a svn dump file:
# Node-path: MySourceCode.cpp
# Node-kind: file
# Node-action: add
# Prop-content-length: 10
You can’t perform that action at this time.