This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@file:Suppress("unused") | |
package rocks.breaker.htmx | |
import kotlinx.html.HTMLTag | |
private fun joinModifiers(modifiers: List<String>) = modifiers.joinToString(prefix = " ", separator = " ") | |
/** | |
* [hx-get HTMX reference](https://htmx.org/attributes/hx-get/) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For color | |
set-option -sa terminal-overrides ",xterm*:Tc" | |
# Enable mouse | |
set -g mouse on | |
# Set prefix | |
unbind C-b | |
set -g prefix C-Space | |
bind C-Space send-prefix |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#shader vertex | |
#version 330 core | |
layout(location = 0) in vec4 position; | |
void main() | |
{ | |
gl_Position = position; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Short answer: don't. Use conditional branches instead. See below. */ | |
Promise.try(function(){ | |
return someAsyncThing(); | |
}).then( (value) => { | |
if (value === 3) { | |
return "final value"; | |
} else { | |
return Promise.try( () => { | |
return someOtherAsyncThing(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/local/bin/python3 | |
# Requires the requests library to work: | |
# $ pip install requests | |
import json, requests, sys | |
url = 'https://wtfismyip.com/json' | |
r = None |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys, ipaddress | |
address = None | |
interactive = False | |
if len(sys.argv) > 1: | |
address = sys.argv[1] | |
else: | |
address = input('Network: ') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
print('Hello, world!') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
R1#show run | |
Building configuration... | |
Current configuration : 4002 bytes | |
! | |
! Last configuration change at 22:38:51 UTC Sat Sep 1 2018 | |
! | |
version 15.6 | |
service timestamps debug datetime msec | |
service timestamps log datetime msec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ansible-playbook 2.6.3 | |
config file = None | |
configured module search path = [u'/Users/breaker/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] | |
ansible python module location = /usr/local/Cellar/ansible/2.6.3/libexec/lib/python2.7/site-packages/ansible | |
executable location = /usr/local/bin/ansible-playbook | |
python version = 2.7.15 (default, Aug 17 2018, 22:39:05) [GCC 4.2.1 Compatible Apple LLVM 9.1.0 (clang-902.0.39.2)] | |
No config file found; using defaults | |
setting up inventory plugins | |
Parsed /Users/breaker/ans/hosts inventory source with ini plugin | |
Loading callback plugin default of type stdout, v2.0 from /usr/local/Cellar/ansible/2.6.3/libexec/lib/python2.7/site-packages/ansible/plugins/callback/default.pyc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System.Collections; | |
public class FlyCamera : MonoBehaviour | |
{ | |
/* | |
Writen by Windexglow 11-13-10. Use it, edit it, steal it I don't care. | |
Converted to C# 27-02-13 - no credit wanted. | |
Reformatted and cleaned by Ryan Breaker 23-6-18 |
NewerOlder