Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
getAWSCredentials()
{
hotctl sso accounts apply -a
hotctl sso accounts apply -n buildstaging=default
hotctl sso accounts apply -n buildstaging=local
hotctl sso accounts apply -n vulcano -r Vulcano-DevOps
hotctl sso accounts apply -n analytics -r Analytics-OnCall
}
@Klerith
Klerith / snippets.json
Last active May 3, 2024 13:38
Dart Snippets
{
// Place your snippets for dart here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
// same ids are connected.
// Example:
// "Print to console": {
// "prefix": "log",
// "body": [
// "console.log('$1');",
@dirk-thomas
dirk-thomas / CMakeLists.txt
Created July 7, 2015 20:05
CMakeLists.txt example with ament
cmake_minimum_required(VERSION 2.8.3)
project(foo)
if(NOT WIN32)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall")
endif()
# find dependencies
@ax3l
ax3l / CUDA_Compilers.md
Last active May 3, 2024 13:36
CUDA Compilers
@maximecharriere
maximecharriere / CGAL_installation_MSVC.md
Last active May 3, 2024 13:36
This tutorial will guide you through the different steps to install CGAL and its third party libraries

Installation of CGAL using MSVC on Windows

by @maximecharriere

This tutorial will guide you through the different steps to install CGAL and its third party libraries.
The purpose of this tutorial is that you don't have to spend weeks like me fighting to make them all work.

Feel free to comment on the gist comment section to make corrections or improvements !


@983
983 / frag.glsl
Created November 14, 2015 09:39
hsv rgb conversion glsl shader
// because http://lolengine.net/blog/2013/07/27/rgb-to-hsv-in-glsl is often down
vec3 rgb2hsv(vec3 c)
{
vec4 K = vec4(0.0, -1.0 / 3.0, 2.0 / 3.0, -1.0);
vec4 p = mix(vec4(c.bg, K.wz), vec4(c.gb, K.xy), step(c.b, c.g));
vec4 q = mix(vec4(p.xyw, c.r), vec4(c.r, p.yzx), step(p.x, c.r));
float d = q.x - min(q.w, q.y);
float e = 1.0e-10;
@ManeFunction
ManeFunction / EasingFunctions.cs
Last active May 3, 2024 13:32 — forked from cjddmut/EasingFunctions.cs
Easing Functions for Unity3D
/*
* Created by C.J. Kimberlin
* Refactored by Mane Function
*
* The MIT License (MIT)
*
* Copyright (c) 2019-2023
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
Maintainers:
nbp: freeciv_qt, freeciv_sdl2, freeciv, freeciv_qt, freeciv, freeciv_gtk, freeciv_gtk, freeciv_sdl2
@bradtraversy
bradtraversy / typescript-crash.ts
Last active May 3, 2024 13:32
Basic intro to TypeScript (From YouTube Crash Course)
// Basic Types
let id: number = 5
let company: string = 'Traversy Media'
let isPublished: boolean = true
let x: any = 'Hello'
let ids: number[] = [1, 2, 3, 4, 5]
let arr: any[] = [1, true, 'Hello']
// Tuple