> Once OCaml has passed the type checking stage, it can stop emitting syntax and type errors and begin the process of compiling the well-formed modules into executable code.
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
| /* Row and Column defaults */ | |
| .row { margin-left: auto; margin-right: auto; margin-top: 0; margin-bottom: 0; max-width: 62.5em; width: 100%; } | |
| .row .row.collapse { margin-left: 0; margin-right: 0; max-width: none; width: auto; } | |
| .row .row { margin-left: -0.9375em; margin-right: -0.9375em; max-width: none; width: auto; } | |
| .row.collapse .column, .row.collapse .columns { padding-left: 0; padding-right: 0; float: left; } | |
| .column, .columns { padding-left: 0.9375em; padding-right: 0.9375em; width: 100%; float: left; position: relative; } | |
| /* Up to 640px */ | |
| @media only screen { | |
| .small-1 { width: 8.33333% } |
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
| select.form-control + .chosen-container.chosen-container-single .chosen-single { | |
| display: block; | |
| width: 100%; | |
| height: 34px; | |
| padding: 6px 12px; | |
| font-size: 14px; | |
| line-height: 1.428571429; | |
| color: #555; | |
| vertical-align: middle; | |
| background-color: #fff; |
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
| # after appcleaner does his magic, do this | |
| sudo rm -rf "/Library/Application Support/Paragon Software/" | |
| sudo rm /Library/LaunchDaemons/com.paragon-software.installer.plist | |
| sudo rm /Library/LaunchDaemons/com.paragon-software.ntfs.loader.plist | |
| sudo rm /Library/LaunchDaemons/com.paragon-software.ntfsd.plist | |
| sudo rm /Library/LaunchAgents/com.paragon-software.ntfs.notification-agent.plist | |
| sudo rm -rf /Library/Filesystems/ufsd_NTFS.fs/ | |
| sudo rm -rf /Library/PrivilegedHelperTools/com.paragon-software.installer | |
| sudo rm -rf /Library/Extensions/ufsd_NTFS.kext/ |
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
| // MIT Licensed | |
| // Author: jwilson8767 | |
| /** | |
| * Waits for an element satisfying selector to exist, then resolves promise with the element. | |
| * Useful for resolving race conditions. | |
| * | |
| * @param selector | |
| * @returns {Promise} | |
| */ |
Also see the original Pieter Noordhuis's guide
You need:
- Raspberry Pi Model B (or B+) with a MicroSD Card $35-40
- An RTL-SDR dongle:
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
| // decrypting Amtrak's real-time train location geoJSON feed | |
| // based on https://github.com/Vivalize/Amtrak-Train-Stats | |
| const fetch = require('node-fetch'); | |
| const CryptoJS = require('crypto-js'); | |
| // this is the xhr call done by https://www.amtrak.com/track-your-train.html containing encrypted train location data | |
| const dataUrl = 'https://maps.amtrak.com/services/MapDataService/trains/getTrainsData'; | |
| // these constants are pulled from RoutesList.v.json, which is an object with keys 'arr', 's', and 'v' | |
| const sValue = '9a3686ac'; // found at s[8] |
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 SwiftUI | |
| struct Dial: View { | |
| @Binding public var value: Double | |
| public var minValue: Double = 0 | |
| public var maxValue: Double = .greatestFiniteMagnitude | |
| public var divisor: Double = 1 | |
| public var stepping: Double = 1 | |
| @State private var dialAngle: Angle = .zero | |
| @State private var dialShadowAngle: Angle = .zero |
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
| extension DragGesture.Value { | |
| var velocity: CGPoint { | |
| let decelerationRate = UIScrollView.DecelerationRate.normal.rawValue, | |
| d = decelerationRate/(1000.0*(1.0 - decelerationRate)) | |
| return CGPoint(x: (location.x - predictedEndLocation.x)/d, | |
| y: (location.y - predictedEndLocation.y)/d) | |
| } |
OlderNewer