Skip to content

Instantly share code, notes, and snippets.

View sammyrulez's full-sized avatar

Sam Reghenzi sammyrulez

View GitHub Profile
@hyperupcall
hyperupcall / settings.jsonc
Last active September 19, 2024 16:20
VSCode config to disable popular extensions' annoyances (telemetry, notifications, welcome pages, etc.)
// I'm tired of extensions that automatically:
// - show welcome pages / walkthroughs
// - show release notes
// - send telemetry
// - recommend things
//
// This disables all of that stuff.
// If you have more config, leave a comment so I can add it!!
{
@david-crespo
david-crespo / README.md
Last active August 26, 2024 14:55
Deckset to web page converter

Deckset to web page converter

This is a handy script to convert a Deckset presentation into a clean web page with the slides on the left and speaker notes on the right. It uses PNGs generated by the Deckset app for the slides and extracts the speaker notes from the presentation markdown.

Setup

Python 3 is required.

pip install markdown jinja2
@six519
six519 / OpenCVTest.java
Created December 4, 2017 10:50
Basic Motion Detection With OpenCV Java Sample Code
package com.ferdinandsilva;
import java.util.ArrayList;
import java.util.List;
import org.opencv.core.Core;
import org.opencv.core.Mat;
import org.opencv.core.MatOfPoint;
import org.opencv.core.Point;
import org.opencv.core.Size;
@narulkargunjan
narulkargunjan / NLP_Demo.py
Last active August 9, 2023 02:47
Topic Modeling (LDA/Word2Vec) with Spacy
import os
import codecs
data_directory = os.path.join('..', 'data',
'yelp_dataset_challenge_academic_dataset')
businesses_filepath = os.path.join(data_directory,
'yelp_academic_dataset_business.json')
with codecs.open(businesses_filepath, encoding='utf_8') as f:
@adilsoncarvalho
adilsoncarvalho / bitbucket-pipelines.yml
Last active April 16, 2024 12:03
Bitbucket Pipelines deployment to a Google Container Engine configuration
options:
docker: true
pipelines:
branches:
master:
- step:
image: google/cloud-sdk:latest
name: Deploy to production
deployment: production
caches:
@bastman
bastman / docker-cleanup-resources.md
Created March 31, 2016 05:55
docker cleanup guide: containers, images, volumes, networks

Docker - How to cleanup (unused) resources

Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...

delete volumes

// see: https://github.com/chadoe/docker-cleanup-volumes

$ docker volume rm $(docker volume ls -qf dangling=true)

$ docker volume ls -qf dangling=true | xargs -r docker volume rm

@nornagon
nornagon / 1-intro.md
Last active November 17, 2024 22:16
How to make a Minecraft (1.8) mod

How to make a Minecraft mod

Minecraft mods, especially mods which change the client, are by and large written with Forge. If you visit their website, you'll be greeted abruptly by a mysterious message at the top of an SMF forum, with no clear path towards actually... making a mod. I'm documenting here the steps I went through to get started, in the hopes of helping the next person have an easier time of it.

I'll be using Scala for this guide, but it should be fairly easy to adapt these instructions to any JVM language (e.g. clojure or if you're feeling masochistic, Java). I'm also developing on OS X, so some of the commands will be a little different if you're on Linux or Windows. I'm assuming you have some proficiency with your operating system, so I won't go into details about how to adapt those commands to your system.

Background

Minecraft doesn't have an official mod API (despite early [promises](http://notch.t

@Andrei-Pozolotin
Andrei-Pozolotin / maven-scala-js.md
Last active January 26, 2021 09:38
maven scala js
@wolfeidau
wolfeidau / postgres.yaml
Last active February 24, 2022 17:19
PostrgreSQL running in kubernetes on google cloud with persistent disk
#
# PostgreSQL master for cohort demo application.
#
# gcloud compute disks create --size=200GB --zone=us-central1-c cohort-pg-master-data-disk
#
apiVersion: v1
kind: ReplicationController
metadata:
name: cohort-postgres
labels:
@donnut
donnut / currying.md
Last active October 28, 2023 17:58
TypeScript and currying

TypeScript and currying

In functional programming you often want to apply a function partly. A simple example is a function add. It would be nice if we could use add like:

var res2 = add(1, 3); // => 4

var add10To = add(10);
var res = add10To(5); // => 15