Skip to content

Instantly share code, notes, and snippets.

View therustmonk's full-sized avatar
🦀
thread 'main' panicked at 'not yet implemented', src/main.rs:2:5

Denis Kolodin therustmonk

🦀
thread 'main' panicked at 'not yet implemented', src/main.rs:2:5
View GitHub Profile
@claudiodekker
claudiodekker / github-sponsors-graphql.graphql
Last active May 14, 2023 22:15
Retrieve a list of sponsors from the Github Graph API
query ($owner: String!, $after: String) {
user (login: $owner) {
sponsorshipsAsMaintainer(first: 100, after: $after, includePrivate: true) {
totalCount
nodes {
sponsorEntity {
... on User {
login
}
}
@rust-play
rust-play / playground.rs
Created September 4, 2019 04:52
Code shared from the Rust Playground
use std::marker::PhantomData;
use std::convert::TryInto;
use std::sync::Arc;
use std::ops::Deref;
use std::sync::mpsc::channel;
#[derive(Debug)]
struct MsgOne {
}
@rust-play
rust-play / playground.rs
Created March 25, 2019 06:59
Code shared from the Rust Playground
#![feature(unboxed_closures)]
#![feature(fn_traits)]
use std::collections::BTreeMap;
struct IncIdGen(i32);
impl FnOnce<()> for &mut IncIdGen {
type Output = i32;
extern "rust-call" fn call_once(self, _args: ()) -> Self::Output {
self.0 += 1;
@elldotbas
elldotbas / css-grid-admin-dashboard.markdown
Created January 5, 2019 13:18
CSS Grid Admin Dashboard

CSS Grid Admin Dashboard

A dashboard-style admin interface built using CSS Grid, with a Flexbox fallback for older browsers.

A Pen by Max Böck on CodePen.

License.

@dmnsgn
dmnsgn / WebGL-WebGPU-frameworks-libraries.md
Last active May 17, 2024 06:13
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
@Era-Dorta
Era-Dorta / create-efi-keys.sh
Last active April 16, 2024 08:10
Sign kernel modules on Ubuntu, useful for Nvidia drivers in UEFI system
# VERY IMPORTANT! After each kernel update or dkms rebuild the modules must be signed again with the script
# ~/.ssl/sign-all-modules.sh
# Place all files in ~/.ssl folder
mkdir ~/.ssl
cd ~/.ssl
# Generate custom keys with openssl
openssl req -new -x509 -newkey rsa:2048 -keyout MOK.priv -outform DER -out MOK.der -nodes -subj "/CN=Owner/"

Aligning images

This is a guide for aligning images.

See the full Advanced Markdown doc for more tips and tricks

left alignment

port module Spelling exposing (..)
import Html exposing (..)
import Html.App as App
import Html.Attributes exposing (..)
import Html.Events exposing (..)
import String
main =
@pdamoc
pdamoc / Main.elm
Created May 31, 2016 19:35
Req msg with cache
module Main exposing (..)
import Html exposing (..)
import Html.App as App
import Html.Events exposing (onClick)
import Req exposing (..)
import Dict exposing (Dict)
main : Program Never
@pdamoc
pdamoc / Main.elm
Created May 31, 2016 18:33
Req msg instead of Cmd msg
module Main exposing (..)
import Html exposing (..)
import Html.App as App
import Html.Events exposing (onClick)
import Req exposing (..)
main : Program Never
main =