Skip to content

Instantly share code, notes, and snippets.

@roycoding
roycoding / Neural_net_warping_tutorial.ipynb
Last active April 18, 2024 17:21
Feature space warping by neural networks
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@solenoid
solenoid / gist:1372386
Created November 17, 2011 04:49
javascript ObjectId generator
var mongoObjectId = function () {
var timestamp = (new Date().getTime() / 1000 | 0).toString(16);
return timestamp + 'xxxxxxxxxxxxxxxx'.replace(/[x]/g, function() {
return (Math.random() * 16 | 0).toString(16);
}).toLowerCase();
};
@adrianhajdin
adrianhajdin / constants.js
Created March 3, 2023 09:28
Build and Deploy an Amazing 3D Web Developer Portfolio with ThreeJS | React Three Fiber
import {
mobile,
backend,
creator,
web,
javascript,
typescript,
html,
css,
reactjs,
@dragonfire1119
dragonfire1119 / how-to-ssh-into-a-proxmox-container.md
Created June 19, 2023 13:32
How to SSH into a Proxmox container

Proxmox

So if you're using Proxmox you need to open up ssh and run the following commands:

  1. Setup a root password
sudo passwd root
@zihotki
zihotki / Lighter or Darker a Color.cs
Created December 17, 2017 00:17
.net C# make a color lighter or darker
/// <summary>
/// Creates color with corrected brightness.
/// </summary>
/// <param name="color">Color to correct.</param>
/// <param name="correctionFactor">The brightness correction factor. Must be between -1 and 1.
/// Negative values produce darker colors.</param>
/// <returns>
/// Corrected <see cref="Color"/> structure.
/// </returns>
public static Color ChangeColorBrightness(Color color, float correctionFactor)
@ullaskunder3
ullaskunder3 / README.md
Last active April 18, 2024 17:08
Detail flutter installation without android studio just using cmdline-tools, git, cmd
@inogo
inogo / yandex_search_regions.csv
Created February 7, 2020 09:38
Список кодов регионов поиска Яндекса (параметр &lr=) ранее был доступен по ссылке https://yandex.ru/yaca/geo.c2n
We can't make this file beautiful and searchable because it's too large.
1,"Москва и Московская область"
2,"Санкт-Петербург"
3,"Центральный федеральный округ"
4,"Белгород"
5,"Иваново"
6,"Калуга"
7,"Кострома"
8,"Курск"
9,"Липецк"
@jonesandy
jonesandy / XUnitAsserts.cs
Last active April 18, 2024 17:07
A cheat sheet of Asserts for xUnit.net in C#
/*
STRINGS
*/
Assert.Equal(expectedString, actualString);
Assert.StartsWith(expectedString, stringToCheck);
Assert.EndsWith(expectedString, stringToCheck);
// Some can also take optional params
Assert.Equal(expectedString, actualString, ignoreCase: true);
Assert.StartsWith(expectedString, stringToCheck, StringComparison.OrdinalIgnoreCase);
@brennanMKE
brennanMKE / IDETemplateMacros.plist
Last active April 18, 2024 17:06
Xcode File Header Templates
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>FILEHEADER</key>
<string>
// Copyright © ___YEAR___ ___ORGANIZATIONNAME___.
// All Rights Reserved.
</string>
<key>ORGANIZATIONNAME</key>
@madelinegannon
madelinegannon / setup-azure-kinect-on-jetson-x-nx.md
Last active April 18, 2024 17:03
Notes on Setting up the Microsoft Azure Kinect on Ubuntu 18.04