Skip to content

Instantly share code, notes, and snippets.

View JesseScott's full-sized avatar
💭
trying to decide what to focus on

Jesse Scott JesseScott

💭
trying to decide what to focus on
View GitHub Profile
@geidsvig
geidsvig / ExampleUnitTest.scala
Created July 6, 2020 18:01
Example unit test using scala-test FlatSpecLike and other generally useful traits.
//package `your package`
import org.scalatest.{FlatSpecLike, GivenWhenThen, Matchers}
class ExampleUnitTest extends FlatSpecLike with GivenWhenThen with Matchers {
"A service/class that you want to test" should "provide some result/expectation" in {
Given("Some service/class")
def service(i: Int) = i * 2
#version 150
uniform float time;
uniform vec2 resolution;
uniform vec2 mouse;
uniform vec3 spectrum;
uniform sampler2D texture0;
uniform sampler2D texture1;
uniform sampler2D texture2;
@joshdholtz
joshdholtz / .env
Last active September 27, 2024 08:50
Using Dotenv and environment variables with fastlane
STUFF = this is some stuff
@Jeevuz
Jeevuz / Extensions.kt
Last active January 3, 2023 10:25
Here I collect some of my most useful Kotlin extensions
inline fun SharedPreferences.edit(changes: SharedPreferences.Editor.() -> SharedPreferences.Editor) {
edit().changes().apply()
}
fun ImageView.tintSrc(@ColorRes colorRes: Int) {
val drawable = DrawableCompat.wrap(drawable)
DrawableCompat.setTint(drawable, ContextCompat.getColor(context, colorRes))
setImageDrawable(drawable)
if (drawable is TintAwareDrawable) invalidate() // Because in this case setImageDrawable will not call invalidate()
}
@mirland
mirland / snapshot_build.sh
Last active April 22, 2019 17:34
SNAPSHOT Beta release using jenkins
#!/bin/bash
echo "Current branch: $GIT_BRANCH"
MAIN_SNAPSHOT_BRANCH="origin/develop"
GRADLE_FILE="app/build.gradle"
CURRENT_COMMIT_HASH=$(git rev-parse --short HEAD)
IS_BETA_SNAPSHOT_BUILD=false
if [[ $GIT_BRANCH == $MAIN_SNAPSHOT_BRANCH ]] ; then # Cheks if this build is a beta release
@lstmemery
lstmemery / data_science_recommendations.md
Last active April 7, 2018 17:11
Recommendations for Incoming MDS students
@yossorion
yossorion / what-i-wish-id-known-about-equity-before-joining-a-unicorn.md
Last active November 3, 2024 17:14
What I Wish I'd Known About Equity Before Joining A Unicorn

What I Wish I'd Known About Equity Before Joining A Unicorn

Disclaimer: This piece is written anonymously. The names of a few particular companies are mentioned, but as common examples only.

This is a short write-up on things that I wish I'd known and considered before joining a private company (aka startup, aka unicorn in some cases). I'm not trying to make the case that you should never join a private company, but the power imbalance between founder and employee is extreme, and that potential candidates would

@truell20
truell20 / RandomBot.py
Created December 12, 2016 00:28 — forked from erdman/RandomBot.py
Improving the Halite RandomBot (Python3)
import hlt
from hlt import NORTH, EAST, SOUTH, WEST, STILL, Move, Square
import random
myID, game_map = hlt.get_init()
hlt.send_init("RandomPythonBot")
while True:
game_map.get_frame()
@benjaminfspector
benjaminfspector / Improving the Halite Random Bot (Java)
Last active March 14, 2017 06:06
Halite Random Improvement Sample Code (Java)
This Gist contains the sample code for improving the sample Halite random bot in Java.
@jaroslavas
jaroslavas / fastlane.rb
Last active September 24, 2018 22:02
Fastlane tricks
# Useful stuff for fastlane configuration. Most of the stuff is taken
# from public examples anc collecetd it here to have everything in one place.
# Set app version or build number:
# https://github.com/fastlane/fastlane/blob/10f316756fb0b2c3e486b4fb3c26ac6393e32146/fastlane/docs/Actions.md#modifying-project
increment_version_number(
version_number: '2.1.1' # Set a specific version number