Skip to content

Instantly share code, notes, and snippets.

View dbousamra's full-sized avatar

Dominic Bou-Samra dbousamra

  • Piccolo Health
  • Australia
View GitHub Profile
import { Extension } from '@tiptap/core';
import { ComponentType } from 'react';
import { ContextMenuPlugin, ContextMenuProps } from './ContextMenuPlugin';
interface ContextMenuOptions {
component: ComponentType<ContextMenuProps>;
}
export const ContextMenu = Extension.create<ContextMenuOptions>({
name: 'contextMenu',
import gi
gi.require_version("Gst", "1.0")
from gi.repository import Gst, GstApp, GObject
Gst.init(None)
class CameraPipeline:
def __init__(self):
self.mainloop = GObject.MainLoop()
fn main() {
let calc = Calculator;
let add = test_group!(
"Add",
[
test!("Can add 2 and 1", { assert_eq!(2 + 1, 3) }),
test!("Can add -1 and 1", { assert_eq!(-1 + 1, 0) }),
]
);
gst-launch-1.0 \
filesrc location=subtitles.srt ! subparse ! mux.subtitle_0 \
videotestsrc num-buffers=100 ! videoconvert ! x264enc ! matroskamux name=mux ! filesink location=output.mkv
#!/bin/bash
## This gist contains step by step instructions to install cuda v9.0 and cudnn 7.2 in ubuntu 18.04
### steps ####
# verify the system has a cuda-capable gpu
# download and install the nvidia cuda toolkit and cudnn
# setup environmental variables
# verify the installation
###
author title
Lionel Flandrin
Playstation Emulation Guide

Introduction

This is my attempt at documenting my implementation of a PlayStation

E-J10-DOM#1536993-2018.12.16-10-24kd9r83pqtaz8#722b
const int trigPin = 8;
const int echoPin = 10;
const int channel_a_enable = 6;
const int channel_a_input_1 = 4;
const int channel_a_input_2 = 7;
const int channel_b_enable = 5;
const int channel_b_input_3 = 3;
const int channel_b_input_4 = 2;
void setup() {
Thu Sep 28 08:04 2017 Time and Allocation Profiling Report (Final)
hnes +RTS -p -RTS roms/DK.nes
total time = 18.99 secs (18989 ticks @ 1000 us, 1 processor)
total alloc = 18,265,635,936 bytes (excludes profiling overheads)
COST CENTRE MODULE SRC %time %alloc
step Emulator.CPU src/Emulator/CPU.hs:(25,1)-(35,45) 9.5 3.0
{-# LANGUAGE OverloadedStrings #-}
module Chain where
import Text.Printf (printf)
import Data.ByteString as BS (ByteString)
import Data.ByteString.Char8 as BS (pack, unpack)
import Data.Semigroup ((<>))
import Crypto.Hash.SHA1 as SHA1
import Prelude as P