Skip to content

Instantly share code, notes, and snippets.

View JNaftali's full-sized avatar

Joshua Marantz JNaftali

View GitHub Profile
{
status: 'rejected',
endpoint: 'getPokemonList',
requestId: 'lxQHTsKJBT0jqIYyDKNpv',
internalQueryArgs: 'pokemon',
originalArgs: '',
startedTimeStamp: 1607794155985,
error: {
name: 'TypeError',
message: 'Expected signal to be an instanceof AbortSignal',
@JNaftali
JNaftali / test
Created November 29, 2020 22:50
Created from Remix Form!
asldmkalm
@JNaftali
JNaftali / input.scss
Created September 6, 2020 01:41
Generated by SassMeister.com.
@function css-darken($h, $s, $l, $darken-by) {
@return $h, $s, calc(#{l} - #{$darken-by + 0%})
};
$color-primary: #007d7e;
$color-primary-tuple: var(--color-primary-hue), var(--color-primary-saturation), var(--color-primary-lightness);
:root {
--color-primary-hue: #{hue($color-primary)};
--color-primary-saturation: #{saturation($color-primary)};
--color-primary-lightness: #{lightness($color-primary)};
@JNaftali
JNaftali / Player.log
Created April 6, 2018 03:54
AI War Collection won't start - Humble Bundle 2018
This file has been truncated, but you can view the full file.
Initialize engine version: 4.2.1f4 (4d30acc925c2)
GfxDevice: creating device client; threaded=1
LoadSystemBundle - Could not create Framework bundle URL
OpenGL:
Version: OpenGL 2.1 [2.1 ATI-1.51.8]
Renderer: AMD Radeon Pro 450 OpenGL Engine
Vendor: ATI Technologies Inc.
VRAM: 2048 MB
Extensions: GL_ARB_color_buffer_float GL_ARB_depth_buffer_float GL_ARB_depth_clamp GL_ARB_depth_texture GL_ARB_draw_buffers GL_ARB_draw_elements_base_vertex GL_ARB_draw_instanced GL_ARB_fragment_program GL_ARB_fragment_program_shadow GL_ARB_fragment_shader GL_ARB_framebuffer_object GL_ARB_framebuffer_sRGB GL_ARB_half_float_pixel GL_ARB_half_float_vertex GL_ARB_imaging GL_ARB_instanced_arrays GL_ARB_multisample GL_ARB_multitexture GL_ARB_occlusion_query GL_ARB_pixel_buffer_object GL_ARB_point_parameters GL_ARB_point_sprite GL_ARB_provoking_vertex GL_ARB_seamless_cube_map GL_ARB_shader_objects GL_ARB_shader_texture_lod GL_ARB_shading_language_100 GL_ARB_shadow GL_ARB_shadow_ambient GL_ARB_sync GL_ARB_text
Scanning folders for symlinks in /Users/lab/test1/node_modules (5ms)
Found Xcode project test1.xcodeproj
Launching iPhone 6 (iOS 10.2)...
Building using "xcodebuild -project test1.xcodeproj -configuration Debug -scheme test1 -destination id=1337DD37-D2E1-4D21-8AF6-51AC4FED1501 -derivedDataPath build"
User defaults from command line:
IDEDerivedDataPathOverride = /Users/lab/test1/ios/build
=== BUILD TARGET yoga OF PROJECT React WITH CONFIGURATION Debug ===
@JNaftali
JNaftali / logicalFunctions.js
Created January 18, 2018 04:53
logical operators intended for use in gpu.js
function not(x) {
if (x) return false
return true
}
function and() {
for (var i = 0; i< arguments.length; i++) {
if ( not(arguments[i]) ) return false
}
return true
@JNaftali
JNaftali / halp.tsx
Created December 8, 2017 15:48
Looking for abstraction
{user.location ? (
<p className="info-location">{user.location}</p>
) : (
isCurrentUser && <AddInfo handleClick={toggleEdit} text="Add location" />
)}
{user.title ? (
<p className="info-title">{getTitleString(user.title)}</p>
) : (
isCurrentUser && (
<AddInfo handleClick={toggleEdit} text="Are you a reader or writer?" />
@JNaftali
JNaftali / Readme.md
Last active August 24, 2017 19:42
Factory/Module pattern of OOJS

DBC Alumni Lightning Talk - Async and Await in ES2017

  1. What is Async? A. Syncronous code runs top to bottom B. Async code skips bits that take a long time for better user performance
  2. Why is Async? A. Making users wait is bad
  3. Things we're not going to talk about A. How do I write promises? - Read MDN B. How can I use ES2017 even though it probably isn't supported in my browser? - babeljs.io