Skip to content

Instantly share code, notes, and snippets.

View gist:2ab83255e852335df808f2745b570ce1
findViewById<FloatingActionButton>(R.id.fab).setOnClickListener { view ->
Snackbar.make(view, "Replace with your own action", Snackbar.LENGTH_LONG)
.setAction("Action", null).show()
}
@compcon
compcon / pilot.txt
Created Apr 15, 2021
TEST - TEST (LL:0)
View pilot.txt
{"id":"6d9c8e0d-a92e-40b0-b2d8-1fab520f6c4f","group":"","sort_index":0,"isLocal":true,"gistCode":"","gistOwner":"a4808533-a619-492c-bf5c-7e3982d9cd4d","lastSync":null,"level":0,"callsign":"TEST","name":"TEST","player_name":"","status":"Active","dead":false,"text_appearance":"","notes":"","history":"","portrait":"","cloud_portrait":"","quirks":[],"current_hp":6,"reserves":[],"orgs":[],"background":"TEST","mechSkills":[2,0,0,0],"licenses":[],"skills":[{"id":"sk_get_a_hold_of_something","rank":1},{"id":"sk_apply_fists_to_faces","rank":1},{"id":"sk_stay_cool","rank":1},{"id":"sk_charm","rank":1}],"talents":[{"id":"t_combined_arms","rank":1},{"id":"t_vanguard","rank":1},{"id":"t_executioner","rank":1}],"core_bonuses":[],"loadout":{"id":"96d5e9c6-0f35-43a4-a4c3-4de76ea9d003","name":"Primary","armor":[{"id":"pg_assault_hardsuit","destroyed":false,"cascading":false,"customDamageType":null}],"weapons":[{"id":"pg_heavy_a_c","destroyed":false,"cascading":false,"customDamageType":null},{"id":"pg_light_signature","destroy
View My first project
import pygame, sys
pygame.init()
screen = pygame.display.set_mode((1366, 768))
box = pygame.Rect(2.5, 2.5, 5, 5)
while True:
for event in pygame.event.get():
if event.type == pygame.QUIT:
sys.exit(0)
View Output path comparison
nix-env failed:
warning: ignoring the user-specified setting 'restrict-eval', because it is a restricted setting and you are not a trusted user
error: while evaluating anonymous function at /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-4/.gc-of-borg-outpaths.nix:44:12, called from undefined position:
while evaluating anonymous function at /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-4/pkgs/top-level/release-lib.nix:121:6, called from /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-4/lib/attrsets.nix:310:43:
while evaluating 'hydraJob' at /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-4/lib/customisation.nix:171:14, called from /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-4/pkgs/top-level/release-lib.nix:121:14:
while evaluating the attribute 'drvPath' at /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc
@palacaze
palacaze / interrupt-handler.hpp
Created Apr 15, 2021
C++ Interrupt handler for Linux
View interrupt-handler.hpp
#pragma once
#ifdef __unix__
#include <atomic>
#include <condition_variable>
#include <functional>
#include <thread>
#include <signal.h>
namespace system {
@kwolbachia
kwolbachia / Splitview.ijm
Last active Apr 15, 2021
imageJ Fiji Splitview macro
View Splitview.ijm
/*----------------------------------------------------------------------------------------------------------------------
For multichannel visualization, 5 channel max
This macro will generate a montage of composite and splited channels in one RGB Image
You can still navigate through slices or frames.
Note : the Splitview image size can be heavy on big hyperstacks due to RGB conversion
Advice : draw a selection before running Spliview, the produced montage will be croped
The new version can ask tu user channel labels and add it in the Splitview with color corresponding to each LUTs.
----------------------------------------------------------------------------------------------------------------------*/
var ChLabels = newArray("GFP","RFP","fRFP","DAPI","Brightfield");
var fontS = 30;
View 8632a41d-eb7e-4be6-b350-a00d688b65f0.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@satoblacksato
satoblacksato / LARAVEL_lumen.md
Created Apr 15, 2021 — forked from juanlopezdev/LARAVEL_lumen.md
Apuntes y primeros pasos con LUMEN (Microframework de Laravel)
View LARAVEL_lumen.md

Lumen

Lumen es un micro-framework para PHP.

Lumen es una versión más liviana de Laravel y orientado más a la creación de APIs y microservicios, aunque también puedes usarlo para crear sitios web o lo que quieras.

Si es posible migrar de Lumen a Laravel

Microservicios:

@choco-bot
choco-bot / Install.txt
Created Apr 15, 2021
pack v0.18.1 - Failed - Package Tests Results
View Install.txt
2021-04-15 18:24:57,921 2376 [DEBUG] - XmlConfiguration is now operational
2021-04-15 18:24:57,999 2376 [INFO ] - ============================================================
2021-04-15 18:24:58,233 2376 [INFO ] - Chocolatey v0.10.16-beta
2021-04-15 18:24:58,249 2376 [DEBUG] - Chocolatey is running on Windows v 6.3.9600.0
2021-04-15 18:24:58,249 2376 [DEBUG] - Attempting to delete file "C:/ProgramData/chocolatey/choco.exe.old".
2021-04-15 18:24:58,249 2376 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\choco.exe.old".
2021-04-15 18:24:58,265 2376 [DEBUG] - Command line: "C:\ProgramData\chocolatey\choco.exe" install pack --version 0.18.1 -fdvy --execution-timeout=2700 --allow-downgrade
2021-04-15 18:24:58,265 2376 [DEBUG] - Received arguments: install pack --version 0.18.1 -fdvy --execution-timeout=2700 --allow-downgrade
2021-04-15 18:24:58,311 2376 [DEBUG] - RemovePendingPackagesTask is now ready and waiting for PreRunMessage.
2021-04-15 18:24:58,311 2376 [DEBUG] - Sending message 'PreRunMessa