Skip to content

Instantly share code, notes, and snippets.

View mark-thibault's full-sized avatar

Mark Thibault mark-thibault

View GitHub Profile
import Combine
import Foundation
class ObservablePublisher<T, U: Error>: ObservableObject {
var result: Result<T, U>?
var value: T? {
if let result = self.result, case .success(let value) = result {
return value
}
@manjufy
manjufy / NetSuiteTBAWS.cls
Last active March 20, 2024 04:20
Salesforce Apex Code for Using Token Based Authentication to call NetSuite RESTlets
@RestResource(urlMapping='/Netsuite/TBA/*')
global with sharing class NetSuiteTBATestWS {
@HttpGet
global static String doGet() {
OAuth10a oAuth = new OAuth10a();
Http h = new Http();
HttpRequest req = new HttpRequest();
req.setMethod('GET');
@ryandotsmith
ryandotsmith / hack-reactor.md
Last active November 24, 2022 07:01
Hack Reactor Talk

Tales From a Heroku User

Here are some things I have learned along the way.

Last Updated: 2013-02-08

Original Audience: Hack Reactor

About

@pj4533
pj4533 / UIBarButtonItem+ETBlockActions.h
Created September 20, 2012 14:16
Respond to button events with blocks
#import <UIKit/UIKit.h>
@interface UIBarButtonItem (ETBlockActions)
- (id) initWithTitle:(NSString *)title style:(UIBarButtonItemStyle)style eventHandler:(void(^)(void))handler;
@end
@chitchcock
chitchcock / 20111011_SteveYeggeGooglePlatformRant.md
Created October 12, 2011 15:53
Stevey's Google Platforms Rant

Stevey's Google Platforms Rant

I was at Amazon for about six and a half years, and now I've been at Google for that long. One thing that struck me immediately about the two companies -- an impression that has been reinforced almost daily -- is that Amazon does everything wrong, and Google does everything right. Sure, it's a sweeping generalization, but a surprisingly accurate one. It's pretty crazy. There are probably a hundred or even two hundred different ways you can compare the two companies, and Google is superior in all but three of them, if I recall correctly. I actually did a spreadsheet at one point but Legal wouldn't let me show it to anyone, even though recruiting loved it.

I mean, just to give you a very brief taste: Amazon's recruiting process is fundamentally flawed by having teams hire for themselves, so their hiring bar is incredibly inconsistent across teams, despite various efforts they've made to level it out. And their operations are a mess; they don't real