Skip to content

Instantly share code, notes, and snippets.

Avatar
🥕

Carrot CarrotCodes

🥕
View GitHub Profile
View gist:56ed731d77c50682b3bf
### Keybase proof
I hereby claim:
* I am drayshak on github.
* I am drayshak (https://keybase.io/drayshak) on keybase.
* I have a public key whose fingerprint is AA75 CEE6 8D3B 586A 6959 3473 A888 FBAF 913D 8070
To claim this, I am signing this object:
View gist:562c1d034ee757822ca3
### Keybase proof
I hereby claim:
* I am voxelcarrot on github.
* I am carrot (https://keybase.io/carrot) on keybase.
* I have a public key whose fingerprint is 94C2 0B1C CEFC 246F 09B6 D58E 3F82 8A4E 7A5B 1220
To claim this, I am signing this object:
View keybase.md

Keybase proof

I hereby claim:

  • I am carrotengineer on github.
  • I am carrot (https://keybase.io/carrot) on keybase.
  • I have a public key whose fingerprint is 94C2 0B1C CEFC 246F 09B6 D58E 3F82 8A4E 7A5B 1220

To claim this, I am signing this object:

@CarrotCodes
CarrotCodes / example-1.kt
Last active July 6, 2016 20:02
Kotlin examples
View example-1.kt
// Data classes
data class Something(val something: String)
val output = Something("test").toString() // Something(something=test)
val equal = Something("test2") == Something("test2") // true
val notEqual = Something("test3") == Something("test4") // false
View CLA.md

Contributor License Agreement

The following terms are used throughout this agreement:

  • You - the person or legal entity including its affiliates asked to accept this agreement. An affiliate is any entity that controls or is controlled by the legal entity, or is under common control with it.
  • Project - is an umbrella term that refers to any and all CarrotCodes open source projects.
  • Contribution - any type of work that is submitted to a Project, including any modifications or additions to existing work.
  • Submitted - conveyed to a Project via a pull request, commit, issue, or any form of electronic, written, or verbal communication with CarrotCodes, contributors or maintainers.

1. Grant of Copyright License.

@CarrotCodes
CarrotCodes / CLA-WillowChat.md
Created January 14, 2017 14:35
CLA-WillowChat
View CLA-WillowChat.md

Contributor License Agreement

The following terms are used throughout this agreement:

  • You - the person or legal entity including its affiliates asked to accept this agreement. An affiliate is any entity that controls or is controlled by the legal entity, or is under common control with it.
  • Project - is an umbrella term that refers to any and all WillowChat open source projects.
  • Contribution - any type of work that is submitted to a Project, including any modifications or additions to existing work.
  • Submitted - conveyed to a Project via a pull request, commit, issue, or any form of electronic, written, or verbal communication with WillowChat, contributors or maintainers.

1. Grant of Copyright License.

View keybase.md

Keybase proof

I hereby claim:

  • I am carrotcodes on github.
  • I am carrot (https://keybase.io/carrot) on keybase.
  • I have a public key ASDeLjES8LMAdIUKm3q9b_KJyaVRIfO9Vn1du1paiU4q5wo

To claim this, I am signing this object:

@CarrotCodes
CarrotCodes / code-of-conduct.md
Last active July 20, 2017 17:37
#compsoc code of conduct
View code-of-conduct.md

#compsoc Code of Conduct

#compsoc aims at being a nice place to chat about computer related things for anyone involved with Edinburgh University.

With that in mind, there is a single rule:

  • Be nice

Not being nice could include:

View extract-clusters.kt
fun extractGraphemeClusters(input: String): List<String> {
val characters = mutableListOf<String>()
val iterator = BreakIterator.getCharacterInstance()
iterator.setText(input)
var start = iterator.first()
var iterated = false
while (!iterated) {
val next = iterator.next()
@CarrotCodes
CarrotCodes / install_nomad_server.yaml
Last active July 25, 2018 22:08
Simple Nomad installation and updating using Ansible
View install_nomad_server.yaml
# To update to a new version of Nomad:
# Download and calculate checksums:
# http --download https://releases.hashicorp.com/nomad/0.8.4/nomad_0.8.4_linux_amd64.zip
# shasum --algorithm 256 --binary nomad_0.8.4_linux_amd64.zip
# unzip nomad_0.8.4_linux_amd64.zip
# shasum --algorithm 256 --binary nomad
# Update facts in this script
# Only run on one hashimaster at a time!
- name: Set nomad version