Skip to content

Instantly share code, notes, and snippets.

import (
"testing"
"github.com/gocql/gocql"
"github.com/scylladb/gocqlx"
"github.com/scylladb/gocqlx/qb"
)
const (
createTypeStmt = `CREATE TYPE IF NOT EXISTS gocqlx_test.segment (
@Bean
public ApplicationContextHolder applicationContextHolder() {
return new ApplicationContextHolder();
}
@Bean
public LoggerContext loggerContext() {
return (LoggerContext) LoggerFactory.getILoggerFactory();
}
use std::io;
use std::rand;
fn main() {
let x:uint = rand::random();
let secret_number:uint = (x % 100u) + 1u;
println!("Guess the number!");
loop{
import java.io.IOException;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.Map;
import java.util.stream.Collectors;
import static java.nio.file.Files.lines;
import static java.util.stream.Collectors.groupingBy;
public class gc_count {
package main
import (
"bufio"
"fmt"
"log"
"os"
)
const (
➜ ~ sudo aura -Ayu --no-pp
:: Synchronizing package databases...
thestinger is up to date 0.0 B 0.00B/s 00:00 [-----------------------------------------] 0%
error: failed retrieving file 'core.db' from ftp.ds.hj.se : Connection timed out after 10001 milliseconds
error: failed to update core (download library error)
error: failed retrieving file 'extra.db' from ftp.ds.hj.se : Connection timed out after 10001 milliseconds
error: failed to update extra (download library error)
error: failed retrieving file 'community.db' from ftp.ds.hj.se : Connection timed out after 10001 milliseconds
error: failed to update community (download library error)
error: failed retrieving file 'multilib.db' from ftp.ds.hj.se : Connection timed out after 10001 milliseconds