This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// GraphQL Utils | |
// Module Vars | |
import { | |
graphql, | |
GraphQLObjectType, | |
GraphQLInputObjectType, | |
GraphQLID | |
} from 'graphql'; | |
import { isInputType } from 'graphql/type/definition'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# This script is designed to replace the existing cdk.out asset directory used by SAM | |
# otherwise a new asset directory will be created that can't be seen by SAM until SAM is re-run. | |
echo "Creating cdk output directory" | |
mkdir -p tmp/cdk.out | |
ASSET_DIRS=($(ls -d1 tmp/cdk.out/asset*)) | |
DIR_COUNT=${#ASSET_DIRS[*]} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// React Component | |
function ProfileBookmarksScreen(props): JSX.Element { | |
const { componentId, relayPagination } = props | |
const { data: user, loadNext, hasNext, refetch } = relayPagination | |
return ( | |
<> | |
<div> | |
{(user?.bookmarkedPostsWithCursor?.edges ?? []).map((edge) => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"root": true, | |
"parser": "@typescript-eslint/parser", | |
"parserOptions": { | |
"project": "./tsconfig.json" | |
}, | |
"plugins": ["@typescript-eslint", "prettier"], | |
"extends": [ | |
"eslint:recommended", | |
"plugin:@typescript-eslint/eslint-recommended", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Return type 'id' must match previous return type 'void *' when block literal has unspecified explicit return type | |
typedef id (^AEURLResponseProcessor)(NSURLResponse *, id, NSError **); | |
+ (AEURLResponseProcessor)statusCode:(NSIndexSet *)acceptableCodes { | |
return [[^(NSURLResponse *response, id data, NSError **error){ | |
if (![response isKindOfClass:[NSHTTPURLResponse class]]) { | |
if (error) { | |
*error = [AEExpect error:AEExpectResponseNotHTTPError |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Incident Identifier: 670E5206-9295-4BC1-891C-E767AF9A7FAD | |
CrashReporter Key: 8032dfc4784a8d5e1721794ced3590db04cdef21 | |
Hardware Model: iPhone4,1 | |
Process: PusherApp [2188] | |
Path: /var/mobile/Applications/2F3C771A-8428-49BC-BFF1-9BE8A5BE2CB3/Football Feeder.app/Football Feeder | |
Identifier: PusherApp | |
Version: ??? (???) | |
Code Type: ARM (Native) | |
Parent Process: launchd [1] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
varying highp vec2 textureCoordinate; | |
uniform sampler2D inputImageTexture; | |
uniform lowp float hueAdjust; | |
precision mediump float; | |
// no need to compute these... | |
const float sqrt2 = 1.414213562373095; | |
const float sqrt3 = 1.732050807568877; | |
const float oneoversqrt2 = 0.707106781186548; | |
const float oneoversqrt3 = 0.577350269189626; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@import <Foundation/CPObject.j> | |
@implementation QuestionListViewController : CPView | |
{ | |
CPView view; | |
CPDictionary questions; | |
CPRect bounds; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* AppController.j | |
* blah | |
* | |
* Created by You on March 15, 2011. | |
* Copyright 2011, Your Company All rights reserved. | |
*/ | |
@import <Foundation/CPObject.j> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
processQueueItem = function(value, callback) { | |
var queueObj = value; | |
var adjustment = queueObj.adjustment; | |
var userUID = queueObj.userUID; | |
var obj = queueObj.obj; | |
var objs = queueObj.objs; | |
//We can store multilpe objects within a single queue'd item so that they get processed together. | |
if (objs) { |
NewerOlder