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
[JsonProperty("visibility_policies")] | |
public List<LinkVisibility> VisibilityPolicies { get; set; } | |
[JsonProperty("audience_options")] | |
public List<AudienceOption> AudienceOptions { get; set; } | |
[JsonIgnore] | |
public bool IsRighteousLink => AudienceOptions != null; | |
/* |
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
void UnitConverter::RestoreUserPreferences(const wstring& userPreferences) | |
{ | |
if (userPreferences.empty()) | |
{ | |
return; | |
} | |
vector<wstring> outerTokens = StringToVector(userPreferences, L"|"); | |
if (outerTokens.size() == 3) | |
{ |
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
[472] ./~/redux-logger/lib/index.js 8.49 kB {0} [built] | |
[473] ./src/containers/LectureContainer/LectureContainer.js 4.32 kB {0} [built] | |
[474] ./src/containers/LectureContainer/LectureActions.js 376 bytes {0} [built] | |
[475] ./src/components/Lecture/Lectures.js 3.37 kB {0} [built] | |
[476] ./src/components/Lecture/Lecture.js 3.6 kB {0} [built] | |
[477] ./src/components/Lecture/Lecture.css 937 bytes {0} [built] [1 error] | |
[479] ./~/style-loader/addStyles.js 7.21 kB {0} [built] | |
[480] ./~/react-select/lib/Select.js 30.5 kB {0} [built] | |
[481] ./~/react-select/~/react-input-autosize/lib/AutosizeInput.js 4.67 kB {0} [built] | |
[482] ./~/react-select/~/classnames/index.js 1.1 kB {0} [built] |
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 java.io.BufferedInputStream; | |
import java.io.BufferedOutputStream; | |
import java.io.PrintWriter; | |
import java.util.Scanner; | |
public class DBlocks { | |
public static void main(String[] args) { | |
final Scanner scanner = new Scanner(new BufferedInputStream(System.in)); | |
final PrintWriter writer = new PrintWriter(new BufferedOutputStream(System.out)); |
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 java.io.BufferedInputStream; | |
import java.io.BufferedOutputStream; | |
import java.io.PrintWriter; | |
import java.util.*; | |
// UVa 10765 - Doves and bombs | |
public class Main { | |
public static void main(String[] args) { | |
final Scanner scanner = new Scanner(new BufferedInputStream(System.in)); |
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 java.io.BufferedInputStream; | |
import java.io.BufferedOutputStream; | |
import java.io.PrintWriter; | |
import java.util.Scanner; | |
/* | |
UVa 1232 - SKYLINE | |
https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=24&page=show_problem&problem=3673 | |
https://uva.onlinejudge.org/external/12/1232.pdf | |
*/ |
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
public void run() { | |
MetricsData curData = collectMetricsData(); | |
if(isConsoleReporterOn) { | |
consoleReporter.report(curData.getData()); | |
} | |
if(isCSVReporterOn) { | |
csvReporter.report(curData.getData(), elapsedTime); | |
} |
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
public static void main() { | |
String whovilleStagingMetrics = "http://whoville-001.sjc1.yammer.com:8081/metrics"; | |
ServerDataCollector whoville_collector = new ServerDataCollector(whovilleStagingMetrics); | |
whoville_collector.setRateInSec(1L); | |
String graphite_host = "10.180.1.232"; | |
int graphite_port = 2003; | |
String rootPrefix = "monitor-staging"; | |
String metricsPrefix = "whoville-001"; | |
whoville_collector.turnGraphiteReporterOn(graphite_host, graphite_port, rootPrefix, metricsPrefix); | |
whoville_collector.report(); |
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
/** | |
* Assume that there is a core service running at http://core-service-node1.com:8080 | |
* Then metrics data will be available at http://core-service-node1.com:8081?metrics | |
* ServerDataCollector can pull metrics data at a regular interval, and monitor real-time. | |
* it can also save the monitored values */ | |
public class PoundieService { | |
public static void main(String[] args) throws URISyntaxException, InterruptedException { | |