Skip to content

Instantly share code, notes, and snippets.

View Cortlandd's full-sized avatar
💭
Learner 😬

Cortland Walker Cortlandd

💭
Learner 😬
View GitHub Profile
@Cortlandd
Cortlandd / retrofit_callback_testing.java
Created April 4, 2020 19:52 — forked from Aesthetikx/retrofit_callback_testing.java
Testing Retrofit Callback style APIs with Robolectric and CountdownLatches
// WidgetApi.java
public interface WidgetApi {
@GET("/widget/{:id}")
void getWidget(@Path("id") int id, Callback<Widget> callback);
}
// MockRetrofitClient.java
public class MockRetrofitClient implements Client {
private int statusCode = 200;
WScript.Echo "*****************************"
WScript.Echo "* Log Search *"
WScript.Echo "* by *"
WScript.Echo "* Cortland Walker *"
WScript.Echo "*****************************"
WScript.Echo "to use this file run: cscript log-search.vbs"
' Variables
Dim objShell, objFileSys, logDirectory, searchText, objLogFolder, logFiles, objFiles
// Trouble
// Film.java
public class Film {
public String title;
// Array of films. grab the json object a create array from it.
public static final Film[] films = {
new Film()
}
#include <iostream>
using namespace std;
/***********RUST*************//*
struct Point {
x: f64,
y: f64,
}
@Cortlandd
Cortlandd / process_list.rs
Created January 1, 2017 22:51
Windows process enumeration
/* Original C++ Implementation*/
// https://msdn.microsoft.com/en-us/library/windows/desktop/ms682623(v=vs.85).aspx
extern crate winapi;
extern crate kernel32;
extern crate user32;
extern crate libc;
use winapi::psapi::*;
use winapi::minwindef::*;
@Cortlandd
Cortlandd / eski.fs
Created December 23, 2016 16:12
A library for debugging .NET applications.
(*
The name eski comes from the name of my grandmother (Essie) and the
last name of the creator of the Elm programming language (Evan Czaplicki).
Eski is directly influenced by Elm 0.18's "Perfect Debugger."
*)
HTTP/1.1 200
Last-Modified: Sat, 05 Nov 2016 01:39:41 GMT
Content-Type: application/vnd.vimeo.video+json
Host: api.vimeo.com
{
"total": 41372,
"page": 1,
"per_page": 25,
"paging": {
module Vimeo.Model exposing (..)
import Html exposing (..)
import Json.Decode exposing (int, string, Decoder, at)
import Json.Decode.Pipeline exposing (decode, required, requiredAt)
import Html.App as App
import Http
import Task
type alias Model = String

Wouldn't necesssarily call it a pitch...but...

Right now I think im gonna write an Elm app to make a call to the Vimeo Json API to the short films group videos...

BUT

What if I wanted to build a platform for shortfilm...?

I've considered and read blogs on this endeavor and want profressional input on going about such a task:

-- Model.elm
module Model exposing (..)
import Color exposing (..)
-- Model
type alias Model =