Skip to content

Instantly share code, notes, and snippets.

View Varriount's full-sized avatar

Clay Sweetser Varriount

View GitHub Profile
@Varriount
Varriount / PropertyLogger.java
Last active June 18, 2020 17:04 — forked from sandor-nemeth/PropertyLogger.java
Spring Boot - Log all configuration properties on application startup
package org.flowable.rest.app;
import java.util.Arrays;
import java.util.stream.StreamSupport;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.event.ContextRefreshedEvent;
import org.springframework.context.event.EventListener;
import org.springframework.core.env.AbstractEnvironment;
@Varriount
Varriount / s3_get_bucket_obj.nim
Last active October 25, 2017 06:29 — forked from Gooseus/s3_get_bucket_obj.nim
Testing async dispatch and http requests in Nim
# testing async dispatch in pursuit of an efficient async s3 interface
import os, times, math, httpclient, asyncdispatch, asyncfile
let t0 = epochTime()
proc dt() : float =
round(epochTime() - t0,6)
const aws_url = "http://localhost:1234/"
@Varriount
Varriount / merge_sort.nim
Created May 29, 2017 08:56 — forked from Bennyelg/merge_sort.nim
merge_sort implementation.
import strutils
import math
#[
Module name: Implementation of MergeSort recursion.
Author: Benny E.
Mail: elgazarbenny at gmail.com
]#

###Module ###Aliases.nim - Alias Analysis Used for term-rewriting macros. Buggy for this purpose because it has been rewritten with something completely different in mind. Analysis is both value and type based. Looks for areas

###Ast.nim Tree structure

###Astalgo contains helpers and debug procedures, which work on symbols, types, and node.

import strutils
const SIZE = 8192
var
rlen = 0
totlen = 0
buf = newStringOfCap(SIZE)
lc = 0
totlines = 0

The Plan

Here is the plan for the repository purge:

  1. Make a backup of the main Nimrod repository
  2. Purge the repository
  3. Post a thread on the forum about the repository purge
  4. Send out email notifications to forkers about the repository purge
  5. Post github issues concerning the purge to forkers that don't have an email to send to
# Current styles of generic procedures
# Generic
proc foo[T](a: int, b: T): T =
result = b
var i = 0
while i < a:
result = result+b
# Typedesc
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd">
<language
name="Nimrod"
version="1.0"
kateversion="2.4"
section="Sources"
extensions="*.nim"
mimetype="text/x-nimrod">