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 std.parallelism, std.stdio; | |
| import core.cpuid, core.sync.mutex; | |
| void main(string[] args) { | |
| auto f = File("measurements.txt", "w"); | |
| auto mutex = new shared Mutex(); | |
| scope(exit) f.close(); | |
| writeln("generating measurements"); |
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
| package vm | |
| import "core:fmt" | |
| InstructionSet :: enum u8 { | |
| NOOP = 0x00, | |
| LITERAL = 0x01, | |
| SUM = 0x02, | |
| PRINT = 0x03, | |
| } |
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
| val fatJar = task("fatJar", type = Jar::class) { | |
| baseName = "${project.name}-fat" | |
| manifest { | |
| attributes["Implementation-Title"] = "Gradle Jar File Example" | |
| attributes["Implementation-Version"] = "1.0.0" | |
| attributes["Main-Class"] = "com.ignite.demo.App" | |
| } | |
| from(configurations.runtimeClasspath.get().map({ if (it.isDirectory) it else zipTree(it) })) | |
| with(tasks.jar.get() as CopySpec) | |
| } |
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
| package com.your.package; | |
| import org.apache.storm.spout.SpoutOutputCollector; | |
| import org.apache.storm.task.TopologyContext; | |
| import org.apache.storm.topology.base.BaseRichSpout; | |
| import org.apache.storm.utils.Utils; | |
| import software.amazon.awssdk.auth.credentials.AwsCredentialsProvider; | |
| import software.amazon.awssdk.regions.Region; | |
| import software.amazon.awssdk.services.sqs.SqsClient; | |
| import software.amazon.awssdk.services.sqs.model.*; |
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
| package com.ifood.connection; | |
| import org.apache.storm.spout.SpoutOutputCollector; | |
| import org.apache.storm.task.OutputCollector; | |
| import org.apache.storm.task.TopologyContext; | |
| import org.apache.storm.topology.ConfigurableTopology; | |
| import org.apache.storm.topology.OutputFieldsDeclarer; | |
| import org.apache.storm.topology.TopologyBuilder; | |
| import org.apache.storm.topology.base.BaseRichBolt; | |
| import org.apache.storm.topology.base.BaseRichSpout; |
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
| package main | |
| import ( | |
| "fmt" | |
| "os" | |
| "github.com/nlopes/slack" | |
| ) | |
| func main() { |
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
| defmodule Portal.Application do | |
| # See https://hexdocs.pm/elixir/Application.html | |
| # for more information on OTP Applications | |
| @moduledoc false | |
| use Application | |
| def start(_type, _args) do | |
| # List all child processes to be supervised | |
| children = [ |
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
| /* Kibana typeahead is fucked up in Chrome since the lastest update, so this should fix it. */ | |
| /* Stylish chrome app URL: https://chrome.google.com/webstore/detail/stylish/fjnbnpbmkenffdnngjfgmeleoegfcffe/related */ | |
| /* typeahead css (courtesy from Gareth) */ | |
| @-moz-document domain("logs.thermeon.eu") { | |
| .typeahead .typeahead-items { | |
| top: 32px; | |
| } | |
| } |
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
| package main | |
| import ( | |
| "encoding/json" | |
| "errors" | |
| "fmt" | |
| "log" | |
| "net/http" | |
| "time" |
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
| package main | |
| import ( | |
| "database/sql" | |
| "encoding/json" | |
| "fmt" | |
| "log" | |
| "net/http" | |
| _ "github.com/lib/pq" |
NewerOlder