Skip to content

Instantly share code, notes, and snippets.

View jonoirwinrsa's full-sized avatar
🐢
Turtle curling

Jonathan Irwin jonoirwinrsa

🐢
Turtle curling
View GitHub Profile
@Miraculix200
Miraculix200 / DreamBooth_Stable_Diffusion.ipynb
Created October 30, 2022 13:27
Dreambooth on SageMaker Studio Lab
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Zerquix18
Zerquix18 / DynamoTable.ts
Created May 6, 2022 18:40
A class to handle DynamoDB databases
import * as DynamoDB from 'aws-sdk/clients/dynamodb';
import { chunk } from 'lodash';
import { v4 as uuid } from 'uuid';
export type ItemStructure = { [key: string]: any; }
export type Filter = {
expression: string;
values?: ItemStructure;
} | ItemStructure;
import * as React from 'react'
import { Dimensions } from 'react-native'
import Animated from 'react-native-reanimated'
import Svg, { Path } from 'react-native-svg'
import { theme } from '../../theme'
import { BodyText, H1, H5 } from '../../typography'
import Box from '../Box'
import Card from '../Card'
export type PointsDialProps = {
@BretCameron
BretCameron / fp.js
Created October 14, 2019 19:08
An example of functional programming in JavaScript, featuring compose, pipe, tap and trace functions
/**
* Performs right-to-left composition, combining multiple functions into a single function.
* @function compose
* @param {...Function} args
* @returns {Function}
*/
const compose = (...fns) => x => fns.reduceRight((output, fn) => fn(output), x, fns);
/**
* Performs left-to-right composition, combining multiple functions into a single function. Sometimes called `sequence`. Right-to-left composition is typically known as `compose`.
Description: >
Script to create a SSL certificate, S3 bucket and Cloudfront distribution.
###############################################################################
Parameters:
###############################################################################
DomainName:
Type: String
Description: The domain name.
@vegard
vegard / primes.py
Created September 21, 2018 07:51
Prime factorisation diagram
# -*- coding: utf-8 -*-
#
# Author: Vegard Nossum <vegard.nossum@gmail.com>
import math
import os
import sys
import cairo
@bvaughn
bvaughn / index.md
Last active June 16, 2024 21:50
How to use profiling in production mode for react-dom

React recently introduced an experimental profiler API. This page gives instructions on how to use this API in a production release of your app.

Table of Contents

Profiling in production

React DOM automatically supports profiling in development mode for v16.5+, but since profiling adds some small additional overhead it is opt-in for production mode. This gist explains how to opt-in.

@JameelMukadam
JameelMukadam / cloud_functions.md
Created February 22, 2018 12:44
Realtime Programming with Firebase and Cloud Functions (in React Native - Ignite)

Firebase Cloud Functions

  1. npm install -g firebase-tools
  2. Run firebase login and login with your firebase account
  3. Select your project from the list shown to you
  4. Run firebase init functions which creates a functions directory
  5. Add your functions logic
  6. Run firebase deploy

All Done!

@rantav
rantav / cloudwatch-event-to-slack-lambda.md
Last active January 14, 2021 03:18
CloudWatch Events to Slack

Sends Cloudwatch Event notifications to Slack

What is this?

AWS have released a new featue called CloudWatch Events, which lets you configure events fired by cloudwatch and direct them to SNS, Lambda functions, etc. Here's the blog post

Motivational image:

Here's the motivational image:

Slack image

@ShaneGowland
ShaneGowland / github-openwith-assistant
Created December 15, 2015 05:18
“Intermediary” executable file that can easily be set as the default associated program for filetypes that then passes the file along to Atom
Module Module1
Sub Main()
'Get the directory path
Dim exe_path As String = (Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData) & "\atom\")
'Variable for the highest version
Dim highest_version As New Version("0.0.1")