This file contains hidden or 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 Foundation | |
guard let handler = InputStream(fileAtPath: "./measurement/temperature/0.wsp") else { | |
exit(1) | |
} | |
handler.open() | |
func readInt(_ handler: InputStream) -> UInt32 { | |
let uint8Pointer = UnsafeMutablePointer<UInt8>.allocate(capacity: 4) |
This file contains hidden or 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
datumsec | T | Td | Tmin12 | Tmax12 | p | pmsl | pch | ptend | rr6 | rr12 | rr24 | VV | ww | W1 | W2 | sun | sunday | N | dd | ff | ffx | ffmin6 | ffmean6 | ffmax6 | ff6 | ffx6 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1561939200 | 190 | 162 | 10029 | 10194 | 1 | 2 | 0 | 12 | 10 | ||||||||||||||||||
1561942800 | 182 | 158 | 10026 | 10191 | -1 | 7 | 11 | 20 | |||||||||||||||||||
1561946400 | 175 | 155 | 10023 | 10188 | -6 | 7 | 11 | 20 | |||||||||||||||||||
1561950000 | 172 | 154 | 10020 | 10186 | -9 | 7 | 11 | 20 | |||||||||||||||||||
1561953600 | 181 | 154 | 10017 | 10182 | -9 | 7 | 12 | 20 | |||||||||||||||||||
1561957200 | 203 | 159 | 10015 | 10179 | -8 | 7 | 12 | 20 | |||||||||||||||||||
1561960800 | 230 | 163 | 172 | 10014 | 10176 | -6 | 7 | 0 | 51480 | 16 | 20 | ||||||||||||||||
1561964400 | 256 | 170 | 10016 | 10177 | -1 | 7 | 16 | 10 | |||||||||||||||||||
1561968000 | 268 | 170 | 10016 | 10176 | 1 | 2 | 20 | 20 |
This file has been truncated, but you can view the full file.
This file contains hidden or 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
# 1 "/home/segabor/Workspace/swift-dev/swift-corelibs-foundation/CoreFoundation/Base.subproj/CFSystemDirectories.c" | |
# 1 "<built-in>" 1 | |
# 1 "<built-in>" 3 | |
#define __llvm__ 1 | |
#define __clang__ 1 | |
#define __clang_major__ 7 | |
#define __clang_minor__ 0 | |
#define __clang_patchlevel__ 0 | |
#define __clang_version__ "7.0.0 ([email protected]:apple/swift-clang.git 076cdf40b84865779fabfe0c492a92cd9a5b3b93) ([email protected]:apple/swift-llvm.git 606965a6c87fbff74ee6700657ae5901c76c109c)" | |
#define __GNUC_MINOR__ 2 |
This file contains hidden or 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
#!/bin/bash | |
today=$(date +%Y%m%d) | |
stopId='BKK_F04217' | |
curl -s "http://futar.bkk.hu/bkk-utvonaltervezo-api/ws/otp/api/where/schedule-for-stop.json?key=apaiary-test&version=3&ap | |
pVersion=apiary-1.0&includeReferences=false&stopId=${stopId}&onlyDepartures=true&date=${today}" \ | |
| jq -e '.data.entry.schedules[] | .directions[] | select(.directionId == "1") | .stopTimes[]' |
This file contains hidden or 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
#!/bin/bash | |
SWIFT_HOME=${HOME}/.swiftenv/versions/swift-5.0-DEVELOPMENT-SNAPSHOT-2019-01-04-a | |
env CCC_OVERRIDE_OPTIONS="#x-fmodules s/-fmodules-cache-path.*//" \ | |
${SWIFT_HOME}/usr/bin/swift build \ | |
-Xcxx -I${SWIFT_HOME}/usr/lib/swift |
This file contains hidden or 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
#!/bin/bash | |
# SNAPSHOT=5.1-DEVELOPMENT-SNAPSHOT-2019-09-16-a | |
SNAPSHOT=5.1-RELEASE | |
if [ ! -d swift ] | |
then | |
echo Please clone Swift language source | |
echo run | |
echo git clone https://github.com/apple/swift.git | |
echo or |
This file contains hidden or 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
#!/bin/bash | |
# Build Swift on Arch Linux | |
# Original post I followed https://akrabat.com/compiling-swift-on-linux/. | |
# [1] Checking out repo | |
mkdir swift-dev | |
cd swift-dev/ | |
git clone [email protected]:apple/swift.git |
This file contains hidden or 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
/*** | |
Swift can say hello to your browser! | |
Requirements | |
------------ | |
* OSX Yosemite or newer | |
* Xcode 7, Swift 2 | |
* Homebrew |
This file contains hidden or 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
// | |
// main.swift | |
// UDP Server example | |
// | |
// Created by Sebestyén Gábor on 2015. 09. 12.. | |
// | |
// Original source: http://www.cs.ucsb.edu/~almeroth/classes/W01.176B/hw2/examples/udp-server.c | |
import Foundation |