Skip to content

Instantly share code, notes, and snippets.

Henrik Johansson dahankzter

Block or report user

Report or block dahankzter

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:64c89bcb1070b02ef32e
~ 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
View gist:ce09d94a58e00e268797
package main
import (
"bufio"
"fmt"
"log"
"os"
)
const (
View gc_count.java
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 {
View gist:b89a2991e9bdcce8dd7e
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{
View gist:d63fd493a44ff1fde955
@Bean
public ApplicationContextHolder applicationContextHolder() {
return new ApplicationContextHolder();
}
@Bean
public LoggerContext loggerContext() {
return (LoggerContext) LoggerFactory.getILoggerFactory();
}
View udt_gocqlx.go
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 (
You can’t perform that action at this time.