I hereby claim:
- I am dkolb on github.
- I am dkub (https://keybase.io/dkub) on keybase.
- I have a public key ASCbWZkyUNuYmtePFCoI1BGkk3aKVqcA67FBKzmrnL5NpAo
To claim this, I am signing this object:
my $cliSettings = {}; | |
my $cliSettings->{'testName'} = "Standard"; | |
my $verbose = 1; | |
{ | |
# A function to return functions! | |
# you call &$getPathTemplate with a function that accepts a single, scalar (not reference) | |
# argument and returns true or false (1 or 0 in Perl) the second argument is | |
# a flag for the second argument that denotes if the destination this GetOptions |
#!/usr/bin/perl | |
use Data::Dumper; | |
$reports = [ | |
'16:02:10,663 INFO [log] STNDRDTESTRESULT operation=getEntityA,endpoint=http://server01.example.com/SomeService,status=VALID', | |
'16:02:18,485 INFO [log] STNDRDTESTRESULT operation=getEntityB,endpoint=http://server01.example.com/SomeOtherService,status=VALID', | |
'16:02:18,490 INFO [log] STNDRDTESTRESULT operation=getEntityB,endpoint=http://server02.example.com/SomeOtherService,status=VALID', | |
'16:02:20,657 INFO [log] STNDRDTESTRESULT operation=getEntityB,endpoint=http://server03.example.com/SomeOtherService,status=VALID', | |
'16:02:20,657 INFO [log] STNDRDTESTRESULT operation=getEntityB,endpoint=http://server04.example.com/SomeOtherService,status=VALID', | |
'16:02:22,276 INFO [log] STNDRDTESTRESULT operation=getEntityB,endpoint=http://server05.example.com/SomeOtherService,status=VALID', |
import java.util.Calendar | |
import javax.xml.bind.DatatypeConverter | |
now = Calendar.getInstance() | |
endDate = DatatypeConverter.printDateTime(now) | |
now.add(Calendar.DAY_OF_MONTH, -30) | |
startDate = DatatypeConverter.printDateTime(now) |
var b = require(__dirname + "/b"), | |
c = require(__dirname + "/c"); | |
b.doIt(); | |
console.log(c.get()); //Outputs 'b.doIt is updating stuff!' |
package com.krinchan.minecraft.spongediamondfinder.listeners; | |
import org.slf4j.Logger; | |
import org.spongepowered.api.entity.living.player.Player; | |
import org.spongepowered.api.event.Listener; | |
import org.spongepowered.api.event.block.ChangeBlockEvent; | |
/** | |
* Created by david on 2/6/16. | |
*/ |
I hereby claim:
To claim this, I am signing this object:
module AirrecordTableUtilities | |
def self.included base | |
base.extend ClassMethods | |
base.include InstanceMethods | |
end | |
module ClassMethods | |
def map_field(method_name, field_name) | |
define_method method_name do | |
self[field_name] |
import {runJxa} from 'run-jxa' | |
import { parse } from 'csv-parse' | |
import { readFile } from 'node:fs/promises' | |
const fileContents = await readFile('/Users/david/Downloads/Cinema_2023-10-09_11-53-49.csv', {encoding: 'UTF-8'}) | |
parse(fileContents, { | |
columns: true | |
}, async function(err, records){ | |
for ( const toDoItem of records) { |