Skip to content

Instantly share code, notes, and snippets.

@DanAtkinson
DanAtkinson / Visual Studio solution file headers
Last active May 20, 2024 18:41 — forked from JamesSkemp/Visual Studio solution file headers
Visual Studio solution file headers - 2003, 2005, 2008, 2010, 2012, 2013, 2015, 2017, 2019, and 2022
== Visual Studio .NET 2003 (DO NOT COPY THIS LINE) ==
Microsoft Visual Studio Solution File, Format Version 8.00
# Visual Studio .NET 2003
VisualStudioVersion = 7.1
== Visual Studio 2005 (DO NOT COPY THIS LINE) ==
Microsoft Visual Studio Solution File, Format Version 9.00
# Visual Studio 2005
VisualStudioVersion = 8.0
@vquaiato
vquaiato / foreach_with_index.cs
Created May 15, 2015 22:27
foreach with index in C#
foreach ( var it in someCollection.Select((x,i) => new { Value = x, Index=i }) )
{
if ( it.Index > SomeNumber) {// }
}
//or
public static void Each<T>( this IEnumerable<T> ie, Action<T, int> action )
{
var i = 0;
@midbel
midbel / recfile.go
Last active May 20, 2024 18:38
a basic parser/lexer for recfile
package main
import (
"bufio"
"bytes"
"errors"
"flag"
"fmt"
"io"
"net/http"
import time
import random
import numba as nb
import numpy as np
import pandas as pd
import datetime as dt
from tqdm import tqdm
from copy import deepcopy
# For type hinting
@unixb0y
unixb0y / hosts
Created April 25, 2018 13:00
hosts file for blocking basically all Google connections
##
# Put this AFTER your current
# /etc/hosts file contents!
# After that, either reboot or
# manually flush your DNS cache
##
127.0.0.1 google.com #} redirects to us2.startpage.com:443
127.0.0.1 www.google.com #} 216.218.239.164 is the IP address for the
127.0.0.1 google.ca #} Google frontend Startpage and automatically
@Hugoberry
Hugoberry / JSON2table.m
Last active May 20, 2024 18:38
JSON to Table in Power Query M
(json) =>
let
//List the expandable columns
expandableColumns = (_) => List.Accumulate(
Table.ColumnNames(_),
{},
(s,c)=>s&(if Type.Is(Value.Type(Record.Field(_{0},c)), type record)
or Type.Is(Value.Type(Record.Field(_{0},c)), type list)
then {c}
else {})
@mutin-sa
mutin-sa / Top_Public_Time_Servers.md
Last active May 20, 2024 18:36
List of Top Public Time Servers

Google Public NTP [AS15169]:

time.google.com

time1.google.com

time2.google.com

time3.google.com

@gboudreau
gboudreau / AuthyToOtherAuthenticator.md
Last active May 20, 2024 18:34 — forked from Ingramz/AuthyToOtherAuthenticator.md
Export TOTP tokens from Authy
@cjmaxik
cjmaxik / README.md
Last active May 20, 2024 18:34
Перевод валюты в рубли в Steam

Перевод валюты в рубли в Steam

Поддерживаются тенге, лиры, песо и гривны. Курс обновляется раз в 12 часов

Изменения

  • 0.9 - добавил гривны. Привет ПДФ
  • 0.8 - исправил обновление текущего курса валюты
  • 0.7 - исправил отображение баланса кошелька и изменил стиль оригинальной стоимости
  • 0.6 - добавил аргентинское песо, исправил ошибки
  • 0.5 - включил автообновление скрипта, исправил обновление курса валют
  • 0.4 - заменил источник курса (ближе к реальному), исправил перевод на страницах бандлов
@danrovito
danrovito / countrydropdown.html
Last active May 20, 2024 18:33
HTML Country Select Dropdown List
<label for="country">Country</label><span style="color: red !important; display: inline; float: none;">*</span>
<select id="country" name="country" class="form-control">
<option value="Afghanistan">Afghanistan</option>
<option value="Åland Islands">Åland Islands</option>
<option value="Albania">Albania</option>
<option value="Algeria">Algeria</option>
<option value="American Samoa">American Samoa</option>
<option value="Andorra">Andorra</option>
<option value="Angola">Angola</option>