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
require 'skemata' | |
Skemata.draw :Book, OpenStruct.create(bookEdition: 1, name: 'Foo Book', pages: 42) do | |
bookEdition | |
name | |
pages | |
end |
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
<!DOCTYPE html> | |
<html lang="{{ page.lang | default: site.lang | default: "en" }}"> | |
... | |
{% js webpacked_bundle %} | |
{% css dstancu %} | |
... | |
</html> |
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
2153 epoll_wait(9, [{EPOLLIN, {u32=31588288, u64=31588288}}], 10, -1) = 1 | |
2153 accept(3, NULL, NULL) = 18 | |
2153 fcntl(18, F_SETFD, FD_CLOEXEC) = 0 | |
2153 setsockopt(18, SOL_SOCKET, SO_PASSCRED, [1], 4) = 0 | |
2153 epoll_ctl(9, EPOLL_CTL_ADD, 18, {EPOLLIN, {u32=31588800, u64=31588800}}) = 0 | |
2153 epoll_wait(9, [{EPOLLIN, {u32=31588800, u64=31588800}}], 10, -1) = 1 | |
2153 recvmsg(18, {msg_name(0)=NULL, msg_iov(1)=[{"\6\0\0\0\10\0\0\0\260k\336\20i\177\0\0", 16}], msg_controllen=32, [{cmsg_len=28, cmsg_level=SOL_SOCKET, cmsg_type=SCM_CREDENTIALS, {pid=960, uid=0, gid=0}}], msg_flags=0}, 0) = 16 | |
2153 recvfrom(18, "freezer\0", 8, 0, NULL, NULL) = 8 | |
2153 sendto(18, "\0\0\0\0\24\0\0\0\6\242\343\1\0\0\0\0", 16, 0, NULL, 0) = 16 | |
2153 sendto(18, "//lxc/juju-a0edf7-7\0", 20, 0, NULL, 0) = 20 |
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
[alias] | |
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit | |
st = status |
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
Section "InputClass" | |
MatchIsTouchpad "on" | |
Identifier "Touchpads" | |
Driver "mtrack" | |
Option "Sensitivity" "1" | |
Option "FingerHigh" "5" | |
Option "FingerLow" "1" | |
Option "IgnorePalm" "true" | |
Option "IgnoreThumb" "true" | |
Option "ThumbRatio" "75" |
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
TYP $B3 | |
DSK main.l | |
SPEAKER EQU $E0C030 | |
HELLO EQU $8000 | |
ORG HELLO | |
beep LDA SPEAKER | |
LDY #1000 | |
LDX #1000 |
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
if(kDown & (KEY_UP)) //Detects if the UP D-PAD button was pressed. | |
{ | |
for (int current = offs; current <= YEAR_OFFSET; ++current) { | |
if (current == UNUSED_OFFSET) continue; | |
bufs[current]++; | |
if (bufs[current] == maxValue[current]) { | |
bufs[current] = minValue[current]; | |
} | |
else { break; } | |
} |
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
C:\Users\David\Desktop\cadius-master\Release>cadius.exe REPLACEFILE test.po TEST/ cadius.log | |
cadius.exe v 1.3, (c) Brutal Deluxe 2011-2013. | |
- Replacing file 'cadius.log' : | |
Error : Can't get file from Image, File not found. | |
Error : Invalid Prodos File path 'TEST/\cadius.log'. | |
C:\Users\David\Desktop\cadius-master\Release>cadius.exe REPLACEFILE test.po TEST cadius.log | |
cadius.exe v 1.3, (c) Brutal Deluxe 2011-2013. | |
- Replacing file 'cadius.log' : | |
Error : Can't get file from Image, File not found. |
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
This is ApacheBench, Version 2.3 <$Revision: 1807734 $> | |
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ | |
Licensed to The Apache Software Foundation, http://www.apache.org/ | |
Benchmarking localhost (be patient) | |
Completed 100 requests | |
Completed 200 requests | |
Completed 300 requests | |
Completed 400 requests | |
Completed 500 requests |
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 org.joda.time.{ LocalDateTime => JodaLocalDateTime } | |
import java.time.{ LocalDateTime => JavaLocalDateTime } | |
object JodaConversionImplicits { | |
implicit class JodaLocalDateTimeExtensions(val timestamp: JodaLocalDateTime) { | |
def toJavaLocalDateTime: JavaLocalDateTime = new JavaLocalDateTime( | |
timestamp.getYear, | |
timestamp.getMonthOfYear, | |
timestamp.getDayOfMonth, | |
timestamp.getHourOfDay, |