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
| { | |
| "language": "Solidity", | |
| "settings": { | |
| "remappings": [ | |
| "ROOT=/home/achapman/augur/packages/augur-core/src/contracts//" | |
| ], | |
| "optimizer": { | |
| "enabled": true, | |
| "runs": 200, | |
| "details": { |
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
| #! /usr/bin/perl | |
| # | |
| # to test: | |
| # 1) run this script with either "accept" or "select-accept" as the argument | |
| # (the script listens to 127.0.0.1:12345) | |
| # 2) telnet localhost 12345 | |
| # 3) if you see "accept failed", there is the thundering herd problem | |
| # | |
| # | |
| use strict; |
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
| #include <avr/sleep.h> //Needed for sleep_mode | |
| #include <avr/wdt.h> //Needed to enable/disable watch dog timer | |
| void setup() { | |
| pinMode(0, OUTPUT);// LED connected to pin 5 which is recognised as pin 0 by arduino | |
| ADCSRA &= ~(1<<ADEN); //Disable ADC, saves ~230uA | |
| //Power down various bits of hardware to lower power usage | |
| set_sleep_mode(SLEEP_MODE_PWR_DOWN); //Power down everything, wake up from WDT | |
| sleep_enable(); | |
| } |
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
| struct Inner { | |
| a: A, | |
| } | |
| impl Inner { | |
| fn fun(&mut self) { | |
| self.a.something(); | |
| } | |
| fn fun2(&mut self, outer: &Arc<Outer>) { | |
| self.a.something2(outer.b); |
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
| var settings = { | |
| // Set to 'true' (without quotes) if run on Windows 64bit. Set to 'false' (without quotes) otherwise. | |
| x64: true, | |
| // Set to disk letter, where PhpStorm was installed to (e.g. C:) | |
| disk_letter: 'C:', | |
| // Set to folder name, where PhpStorm was installed to (e.g. 'PhpStorm') | |
| folder_name: 'PhpStorm 2022.1.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
| var settings = { | |
| // Set to 'true' (without quotes) if run on Windows 64bit. Set to 'false' (without quotes) otherwise. | |
| x64: true, | |
| // Set to disk letter, where PhpStorm was installed to (e.g. C:) | |
| disk_letter: 'C:', | |
| // Set to folder name, where PhpStorm was installed to (e.g. 'PhpStorm') | |
| folder_name: 'PhpStorm 2022.1.2', |