Skip to content

Instantly share code, notes, and snippets.

[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 2
@tzhbami7
tzhbami7 / gist:26cdba6e3b841d5d0c39
Created April 17, 2015 10:02
Ruby Gem libv8 on OSX 10.10.3
bundle config build.libv8 --with-system-v8
@tzhbami7
tzhbami7 / counter-v1.js
Last active February 5, 2020 21:33
Emberjs CountDown with setInterval
import Ember from 'ember';
export default Ember.Object.extend({
timeLeft: function() {
return this._humanResult();
}.property('_timeDiff'),
hasFinished: function() {
return this.get('timeLeft') === 0;
}.property('timeLeft'),
@tzhbami7
tzhbami7 / counter-v2.js
Created August 4, 2015 10:49
EmberJS CountDown with Ember.run.later()
import Ember from 'ember';
export default Ember.Object.extend({
interval: function() {
return 10; // Time between polls (in ms)
}.property().readOnly(),
totalTime: function() {
return 5000; // Total Time (in ms)
}.property(),
[101] pry(main)> serialport.gets.chomp
=> "\xC0\x01@\x00\xC0=\xFF\xBD\xFF\x95\xFF\x16\xFF\xD5\xFF\xE6\x00\x00\xFD\xAC\x02$?\xAC\xF8\xFFF\x00\x1E\x00\xC0\xFD\xC0\xFE\x00=\x00;\xFF\xFB\x002\xFF\xA0\xFF\xE3\xFF\xEE\xFDL\xFD\xC8?t\xFA\xFF@\x00\xE4\xFF\x00\xA3n*\x9B\v\b\xE0\a8\v\xBF\t\x18\tW\b\xC0\b\x98\bK"
tzhbami7@john-DS8229KKS:~$ rbenv install rbx-2.5.8
Downloading rubinius-2.5.8.tar.bz2...
-> https://dqw8nmjcqpjn7.cloudfront.net/d6b411732aa035865f2855845abe5405119560f0979062672d576601de89e59a
Installing rubinius-2.5.8...
BUILD FAILED (Ubuntu 15.04 using ruby-build 20150719-13-g86919c8)
Inspect or clean up the working tree at /tmp/ruby-build.20150915094519.3730
Results logged to /tmp/ruby-build.20150915094519.3730.log
<trainingSettings difficulty="hard" appId="hamsterSplash"><trainingDuration type="fixed">PT60S</trainingDuration><difficulty level="hard"><heavyHamsters>false</heavyHamsters><timeToFlickHamsters>2</timeToFlickHamsters></difficulty></trainingSettings>
<trainingSettings difficulty="hard" appId="hamsterSplash"><trainingDuration type="fixed">PT60S</trainingDuration><difficulty level="hard"><heavyHamsters>false</heavyHamsters><timeToFlickHamsters>2</timeToFlickHamsters></difficulty></trainingSettings>
[Unit]
Description=ARK: Survival Evolved dedicated server
Wants=network-online.target
After=syslog.target network.target nss-lookup.target network-online.target
[Service]
ExecStart=/home/steam/servers/ark/ShooterGame/Binaries/Linux/ShooterGameServer TheIsland?listen?SessionName=<SESSION_NAME> -server -log
LimitNOFILE=100000
ExecReload=/bin/kill -s HUP $MAINPID
ExecStop=/bin/kill -s QUIT $MAINPID
{
"trainingSettings": [
{
"label": "trainingDuration",
"options": ["0:30", "1:00", "1:30", "2:00", "2:30", "3:00", "3:30", "4:00", "5:00", "6:00", "7:00", "8:00", "9:00", "10:00"],
"default": "1:30"
},
{
"label": "difficulty",
"options": ["auto", "easy", "medium", "hard"],