Skip to content

Instantly share code, notes, and snippets.

View sync's full-sized avatar

Anthony Mittaz sync

View GitHub Profile
## Learning resources
- [Video Course - egghead - Up and Running with Remix from Kent C. Dodds](https://egghead.io/courses/up-and-running-with-remix-b82b6bb6)
- [Video Course - egghead - Learn Remix by building a Social Media Platform with TypeScript and Prisma](https://egghead.io/courses/learn-remix-by-building-a-social-media-platform-with-typescript-and-prisma-cddb0550)
- [Video Course - LevelUp Tutorial - Realtime Remix with Supabase from Melbourne](https://leveluptutorials.com/tutorials/realtime-remix-with-supabase/create-a-supabase-project)
- [Blog Post](https://www.prisma.io/blog/fullstack-remix-prisma-mongodb-1-7D0BfTXBmB6r)
@sync
sync / GraphqlServer.re
Created October 13, 2019 06:31
GraphQL Reason server
open Lwt.Infix;
open Graphql_lwt;
type role =
| User
| Admin;
type user = {
id: int,
name: string,
info building @opam/ocamlfind@opam:1.8.1@0e6469e7
error: build failed with exit code: 1
build log:
# esy-build-package: building: @opam/ocamlfind@opam:1.8.1
# esy-build-package: pwd: /Users/anthonymittaz/.esy/3___________________________________________________________/b/opam__s__ocamlfind-opam__c__1.8.1-29b79927
# esy-build-package: running: './configure' '-bindir' '/Users/anthonymittaz/.esy/3___________________________________________________________/s/opam__s__ocamlfind-opam__c__1.8.1-29b79927/bin' '-sitelib' '/Users/anthonymittaz/.esy/3___________________________________________________________/s/opam__s__ocamlfind-opam__c__1.8.1-29b79927/lib' '-mandir' '/Users/anthonymittaz/.esy/3___________________________________________________________/s/opam__s__ocamlfind-opam__c__1.8.1-29b79927/man' '-config' '/Users/anthonymittaz/.esy/3___________________________________________________________/s/opam__s__ocamlfind-opam__c__1.8.1-29b79927/lib/findlib.conf' '-no-custom'
Welcome to findlib version 1
@sync
sync / App.re
Created May 4, 2019 02:17
Next.js
type css = {. "about": string};
[@bs.module] external css: css = "./about.css";
[@react.component]
let make = (~onServer) => {
<div
className={
css##about;
}>
<p> {React.string("This is the about page.")} </p>
@sync
sync / GraphqlHooks.re
Created March 26, 2019 19:42
Hooks reason graphql
module MemCache = {
type t;
[@bs.deriving abstract]
type config = {initialState: Js.Json.t};
type conf = Js.Json.t;
[@bs.module "graphql-hooks-memcache"]
external _createMemCache: config => t = "default";
@sync
sync / App.re
Last active March 22, 2019 01:45
Example docker
[@bs.config {jsx: 3}];
type route =
| Home
| More;
let mapPathToRoute = (path: list(string)) =>
switch (path) {
| [] => Home
| ["more"] => More
@sync
sync / run-tests
Created January 25, 2013 04:14
Teamcity ios-sim integration
if ENV['SL_RUN_UNIT_TESTS'] then
launcher_path = File.join(ENV['SRCROOT'], "../../bin", "ios-sim")
test_bundle_path= File.join(ENV['BUILT_PRODUCTS_DIR'], "#{ENV['PRODUCT_NAME']}.#{ENV['WRAPPER_EXTENSION']}")
environment = {
'DYLD_INSERT_LIBRARIES' => "/../../Library/PrivateFrameworks/IDEBundleInjection.framework/IDEBundleInjection",
'XCInjectBundle' => test_bundle_path,
'XCInjectBundleInto' => ENV["TEST_HOST"]
}
@sync
sync / gist:957132
Created May 5, 2011 14:26 — forked from AlanQuatermain/gist:957060
Keep your iOS network activity indicator under control, in a *thread-safe* way. Also shows a useful means of debugging it by logging backtraces for on/off calls.
//
// KBNetworkActivityIndicator.h
// Kobov3
//
// Created by Jim Dovey on 10-03-21.
// Copyright 2010 Kobo Inc. All rights reserved.
//
#import <Foundation/Foundation.h>
@sync
sync / iTourU
Created March 13, 2011 06:42
Tour nested tracks
{
"tour": {
"title": "New tour uploading test",
"description": "Test Description",
"tags": "Test ",
"transport_type": "0",
"published": "true",
"tracks_attributes": [{
"position": "1",
"title": "Stop 1",
NSURL *url = [NSURL URLWithString:BASE_URL];
[ASIHTTPRequest removeCredentialsForHost:[url host] port:[[url port] intValue] protocol:[url scheme] realm:@"Web Password"];