Skip to content

Instantly share code, notes, and snippets.

View ChrisKulesza's full-sized avatar

Christian Kulesza ChrisKulesza

View GitHub Profile
@bittner
bittner / keyboard-keys.md
Created February 28, 2019 22:50
Keyboard keys markup in MarkDown

Ctrl + Alt + Space

@chranderson
chranderson / nvmCommands.js
Last active May 6, 2024 14:15
Useful NVM commands
// check version
node -v || node --version
// list locally installed versions of node
nvm ls
// list remove available versions of node
nvm ls-remote
// install specific version of node
@asalt
asalt / latex_hide_figure.tex
Created January 21, 2016 21:15
How to hide whole sections in a latex document.
%http://tex.stackexchange.com/questions/77920/comment-package-excludecomment-gives-error
\documentclass[12pt]{article}
\usepackage{todonotes} % \missingfigure
\usepackage{comment} % to exclude whole sections when I want to
\newif\ifshow % toggle true or false based on if want to hide section
%\showtrue % show the sections
\showfalse % hide the sections
\ifshow
@crowbarsolutions
crowbarsolutions / CustomDataSourceRequestAttribute.cs
Last active April 12, 2023 09:16
Have Kendo or Telerik grid date time filters to ignore or not account for the time in the underlying data
using System.Web.Mvc;
using MyProject.ModelBinders;
using Kendo.Mvc.UI;
namespace MyProject.CustomAttributes
{
public class CustomDataSourceRequestAttribute : DataSourceRequestAttribute
{
public override IModelBinder GetBinder()
{
@consti
consti / hosts
Last active April 23, 2024 19:50
/etc/hosts to block shock sites etc.
# This hosts file is brought to you by Dan Pollock and can be found at
# http://someonewhocares.org/hosts/
# You are free to copy and distribute this file for non-commercial uses,
# as long the original URL and attribution is included.
#<localhost>
127.0.0.1 localhost
127.0.0.1 localhost.localdomain
255.255.255.255 broadcasthost
::1 localhost
@oliverheilig
oliverheilig / Transform.cs
Last active August 15, 2023 12:41
GeoTransform
// This snippet contains methods to transform between the
// various "coordinate formats" used by PTV components
using System;
public class Program
{
public static void Main()
{
var pWgs = new Point(8.4, 49.0); // Karlsruhe
var pPtv_Geodecimal =
@mcliment
mcliment / Benchmark.cs
Last active December 17, 2023 11:18
Test to check the speed of List.ForEach vs List.AddRange
using System;
using System.Collections.Generic;
using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Attributes.Jobs;
namespace ForEachVsAddRange
{
[MemoryDiagnoser]
public class Benchmark
{