Skip to content

Instantly share code, notes, and snippets.

@boocs
boocs / readme.md
Last active September 24, 2023 00:49
Removing red squiggles (Intellisense errors) for Unreal Engine
View readme.md

Removing red squiggles (Intellisense errors) for Unreal Engine

This guide should remove all Intellisense errors from your project. I've recently finished a Udemy series and had no problems fixing any Intellisense errors with this guide.

I've tested this in both Visual Studio 2019 and VSCode (Latest Microsoft C++ plugin). They both work. (Windows 10)

Some other compilers, with their version of Intellisense, may still be helped by some of this info.

Note: VSCode was used with Build Tools for Visual Studio 2019
@QuantumFractal
QuantumFractal / micrograd.jl
Created September 24, 2023 00:13
Julia Micrograd implementation with Multi-layer perceptrons + backprop
View micrograd.jl
### A Pluto.jl notebook ###
# v0.19.26
using Markdown
using InteractiveUtils
# ╔═╡ 9d7b2fcb-7155-4636-97f6-4401b6f561af
using GraphViz
# ╔═╡ 8d04e8a2-5a40-11ee-1678-757abfdac18b
View linear-attention.py
import torch
from torch import nn
import torch.nn.functional as F
def psi(x):
return F.elu(x) + 1
class LinearAttention(nn.Module):
def __init__(self, dim, heads):
super().__init__()
@LeCoupa
LeCoupa / nodejs-cheatsheet.js
Last active September 24, 2023 00:42
Complete Node.js CheatSheet --> UPDATED VERSION --> https://github.com/LeCoupa/awesome-cheatsheets
View nodejs-cheatsheet.js
/* *******************************************************************************************
* THE UPDATED VERSION IS AVAILABLE AT
* https://github.com/LeCoupa/awesome-cheatsheets
* ******************************************************************************************* */
// 0. Synopsis.
// http://nodejs.org/api/synopsis.html
@luisdeol
luisdeol / DataExportClass.cs
Last active September 23, 2023 23:39
Export List of Objects to a Comma-Separated Values (.CSV) file using C#, allowing the export of Entity Framework DbSet to CSV File. An example of use comes within the code.
View DataExportClass.cs
using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
namespace DataExportClass
{
class Program
{
public class Employee
@eonu
eonu / gps.md
Last active September 23, 2023 23:35
Resources on Gaussian Processes
View gps.md

Resources on Gaussian Processes

Gaussian processes (GPs) are a challenging area of Bayesian machine learning to get started with – from wrapping your head around dealing with infinite dimensional Gaussian distributions, to understanding kernel functions and how to choose the right one for the right task, all on top of having solid knowledge of Bayesian inference.

While primarily used as a powerful regression model with the ability to estimate uncertainty in predictions, GPs can also be used for classification, and have a very wide range of applications.

These are some of the resources I have used, or are planning to use in my on-going process of learning about GPs.

Lectures

@knotdevel
knotdevel / deboot.sh
Last active September 23, 2023 23:28
script to build Ubuntu rootfs (for arm64, armhf, powerpc, ppc64el)
View deboot.sh
#!/bin/bash
#
# deboot.sh
# script to build Ubuntu rootfs (for arm64, armhf, powerpc, ppc64el)
#
# Copyright 2017 knotdevel
# Released under the MIT license
# http://opensource.org/licenses/mit-license.php
#
#
@totoprayogo1916
totoprayogo1916 / template.xml
Last active September 23, 2023 23:27
Blogger Template with Bootstrap v5 Starter
View template.xml
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html>
<html b:css='false' b:js='false' xmlns='http://www.w3.org/1999/xhtml' xmlns:b='http://www.google.com/2005/gml/b' xmlns:data='http://www.google.com/2005/gml/data' xmlns:expr='http://www.google.com/2005/gml/expr'>
<head>
<!-- Required meta tags -->
<meta charset='utf-8'/>
<meta content='width=device-width, initial-scale=1' name='viewport'/>
<title><data:view.title.escaped/></title>
@msrose
msrose / combining-git-repositories.md
Last active September 23, 2023 23:08
How to combine two git repositories.
View combining-git-repositories.md

Combining two git repositories

Use case: You have repository A with remote location rA, and repository B (which may or may not have remote location rB). You want to do one of two things:

  • preserve all commits of both repositories, but replace everything from A with the contents of B, and use rA as your remote location
  • actually combine the two repositories, as if they are two branches that you want to merge, using rA as the remote location

NB: Check out git subtree/git submodule and this Stack Overflow question before going through the steps below. This gist is just a record of how I solved this problem on my own one day.

Before starting, make sure your local and remote repositories are up-to-date with all changes you need. The following steps use the general idea of changing the remote origin and renaming the local master branch of one of the repos in order to combine the two master branches.