Skip to content

Instantly share code, notes, and snippets.

View okhosting's full-sized avatar
💭
https://okhosting.com

Edgard David Iván Muñoz Chávez okhosting

💭
https://okhosting.com
View GitHub Profile
@rmcc13
rmcc13 / launch.json
Last active June 5, 2019 12:32
Example configurations for enabling stepping into .NET Core code when debugging in vscode with omnisharp-vscode. The configuration in launch.json and tasks.json is for debugging .NET Core apps. The configuration in settings.json is for debugging tests executed by omnisharp.
{
"version": "0.2.0",
// omnisharp docs reference:
//https://github.com/OmniSharp/omnisharp-vscode/wiki/Debugging-into-the-.NET-Framework-itself
"configurations": [
{
"name": ".NET Core Launch (console)",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build",
@ak47akshaykulkarni
ak47akshaykulkarni / MainActivity.cs
Last active December 8, 2021 05:57
Exit Android application if device is rooted: Xamarin.Forms | Xamarin.Android
using Android.App;
using Android.Content.PM;
using Android.Runtime;
using Android.Views;
using Android.Widget;
using Android.OS;
using Java.IO;
using Java.Lang;
using Process = Android.OS.Process;
using String = System.String;
@jcorderodr
jcorderodr / ADUserProperty.cs
Last active July 13, 2021 00:18
ActiveDirectory Basic Management on C#
using System;
//Class from: http://www.c-sharpcorner.com/uploadfile/dhananjaycoder/all-operations-on-active-directory-ad-using-C-Sharp/
namespace TestAD.ActiveDirectory
{
class ADUserProperty
{
public const String DESCRIPTION = "description";
@dmnsgn
dmnsgn / WebGL-WebGPU-frameworks-libraries.md
Last active April 24, 2024 18:36
A collection of WebGL and WebGPU frameworks and libraries

A non-exhaustive list of WebGL and WebGPU frameworks and libraries. It is mostly for learning purposes as some of the libraries listed are wip/outdated/not maintained anymore.

Engines and libraries ⚙️

Name Stars Last Commit Description
three.js ![GitHub
@callumlocke
callumlocke / scale-canvas.ts
Last active April 12, 2024 03:25
How to fix a canvas so it will look good on retina/high-DPI screens.
/*
UPDATED for 2023 - Now much simpler. The old tricks are no longer needed.
The following code makes an 800×600 canvas that is always as sharp as possible for the device.
You still draw on it as if it's the logical size (800×600 in this case), but everything just
looks sharper on high-DPI screens. Regular non-sharp screens are not affected.
*/
const width = 800
@jm3
jm3 / 7 Questions All Businesses Must Answer.md
Last active September 29, 2023 22:12
from Peter Thiel's book, Zero to One
pt Seven Questions All Businesses Must Answer
  1. The Engineering Question: Can you create breakthrough technology (vs. incremental improvement)?

  2. The Timing Question: Is now the right time to start this particular business?

  3. The Monopoly Question: Are you starting with a big share of a small market?

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name: