Skip to content

Instantly share code, notes, and snippets.

View 3gcodes's full-sized avatar

Gregg Bolinger 3gcodes

View GitHub Profile
const axios = require('axios');
const cheerio = require('cheerio');
const url = 'https://boardgamegeek.com/collection/user/gdboling';
let ids = [];
let prices = [];
foo();
console.log(prices);
SELECT
count(DISTINCT "employees"."id") as size,
"employees"."id"
FROM
"employees"
LEFT OUTER JOIN
"performance_level_adjustments"
ON "performance_level_adjustments"."deleted_at" IS NULL
AND "performance_level_adjustments"."employee_id" = "employees"."id"
AND
router.get('/', async (req, res) =>{
const session = driver.session();
const result = await session.run(
'CREATE (a:Person {name: "Candace"}) RETURN a'
);
const singleRecord = result.records[0];
const node = singleRecord.get(0);
public class Player {
private int updates = 0;
private int secs = 0;
private int second = 30*60;
private long timer = System.currentTimeMillis();
private int taskTimeToRun = 5;
private int taskRan = 0;
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
Future main() async {
await SystemChrome.setPreferredOrientations(
[DeviceOrientation.landscapeLeft]);
await SystemChrome.setEnabledSystemUIOverlays([]);
runApp(MyApp());
}
@SpringBootApplication
open class MyApp : App(MyView::class, Styles::class) {
private lateinit var context : ConfigurableApplicationContext
override fun init() {
super.init()
context = SpringApplication.run(this.javaClass)
context.autowireCapableBeanFactory.autowireBean(this)
FX.dicontainer = object : DIContainer {
@3gcodes
3gcodes / accounts.kt
Created October 18, 2017 02:44
First stab at displaying a list of Accounts pulled from a Grails REST API in TornadoFX.
class Account: JsonModel {
var id by property<Long>()
fun idProperty() = getProperty(Account::id)
var name by property<String>()
fun nameProperty() = getProperty(Account::name)
var accountNumber by property<String>()
fun accountNumberProperty() = getProperty(Account::accountNumber)
@SpringBootApplication
public class DemoApplication extends Application {
private ConfigurableApplicationContext springContext;
private Parent root;
@Override
public void init() throws Exception {
springContext = SpringApplication.run(DemoApplication.class);
FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource("/sample.fxml"));
. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v1.4.2.RELEASE)
2016-12-06 10:44:38.303 INFO 78182 --- [ main] c.h.s.controller.BrandControllerTest : Starting BrandControllerTest on admins-mbp-2.hightouchinc.com with PID 78182 (started by greggb in /Users/greggb/Projects/Sasnak/back-office-api)
2016-12-06 10:44:38.304 INFO 78182 --- [ main] c.h.s.controller.BrandControllerTest : The following profiles are active: test
package main
import (
"fmt"
"strings"
"strconv"
"os"
"math"
)