Skip to content

Instantly share code, notes, and snippets.

View JaimeStill's full-sized avatar
👾

Jaime Still JaimeStill

👾
View GitHub Profile
@JaimeStill
JaimeStill / research.md
Last active December 22, 2017 02:08
Research Plan for Dynamic Data Visualizations

Dynamic Data Vis Research Plan

Milestones

  • Fill the gaps in d3.js knowledge
  • Get comfortable generating maps in d3.js
  • Get comfortable associating data with world map points in d3.js
  • Get comfortable generating map overlay visualizations based on data
  • Get comfortable generating events based on map interactions
  • Build an HTTP server for hosting shape files
@JaimeStill
JaimeStill / toolmaker.md
Last active December 13, 2017 16:45
The Toolmaker's Guide - Mike Bostock (https://vimeo.com/106198518)

Part 1 - How Tools Influence Us

Tools increase our efficiency

They have extrinsic, not intrinsic, value. Tools increase produced value per expended effort.

Tools make some tasks easier and some tasks harder

Tools do not form spontaneously; they are designed. Toolmakers have particular tasks in mind.

Tools influence how we solve problems

As rational actors, we seek to maximize value per effort. We choose between various approaches accordingly.

@JaimeStill
JaimeStill / AttachmentController.cs
Last active February 6, 2018 15:33
Angular / Web API file uploads with additional data
namespace App.Web.Controllers
{
[Route("api/[controller]")]
public class AttachmentController : Controller
{
private AppDbContext db;
public AttachmentController(AppDbContext db)
{
this.db = db;
@JaimeStill
JaimeStill / AppDbContext.cs
Last active March 8, 2025 19:58
ASP.NET Core Active Directory Identity Integration Middleware
// User entity class added for convenience. All other entities removed for clarity
namespace App.Data
{
public class AppDbContext : DbContext
{
public AppDbContext(DbContextOptions<AppDbContext> options) : base(options) { }
public DbSet<User> Users { get; set; }
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
@JaimeStill
JaimeStill / Copy-NewGitRepo.ps1
Created March 12, 2018 17:48
Clone an existing git repository into a new git repository
function Copy-NewGitRepo {
[CmdletBinding()]
Param(
[Parameter(Mandatory=$true, Position = 0)]
[string]$directory,
[Parameter(Mandatory=$true, Position = 1)]
[string]$origin,
[Parameter(Mandatory=$true, Position = 2)]
[string]$destination
)
@JaimeStill
JaimeStill / hosted-code.html
Last active March 16, 2018 19:34
snippets for integrated features in webstack
<hosted-code url="https://gist.githubusercontent.com/JaimeStill/6e9b232f308119855a38430e9e3d0015/raw/1b055d095dc256cb67d86d4a9d18c08a292f9a5d/hosted-code.html" language="markup"></hosted-code>
@JaimeStill
JaimeStill / setup.md
Last active March 27, 2018 12:02
Setup for Reverse Raffle
@JaimeStill
JaimeStill / combine-filter-match
Last active April 20, 2018 19:16
Exploring Functional Programming - Currying - https://angular-mostly-adequate.stackblitz.io/curry
filter<T1, T2>(fn: (value: T1) => T2) {
return (ary: T1[]) => ary.filter(fn);
}
match = (what: RegExp) => (str: string) => str.match(what);
matchT = match(/t/ig);
findT = filter(matchT);