@interface MBBlob : NSObject
@property (nonatomic, readonly) NSNumber *numberValue;
@property (nonatomic, readonly) NSString *stringValue;
@end
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
html, body { | |
height: 100%; | |
} | |
#innerborder { | |
min-height: 100%; | |
} |
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
set nocompatible | |
set history=1000 | |
set undolevels=1000 | |
let mapleader="," | |
call pathogen#infect() | |
" turn off swap files and backup copies, git instead | |
set nobackup | |
set noswapfile | |
set nowritebackup |
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
uv_buf_t alloc_buffer(uv_handle_t * handle, size_t suggested_size) { | |
vector<char> * data = new vector<char>(suggested_size); | |
return uv_buf_init(data->data(), suggested_size); | |
} | |
void on_read(uv_stream_t* stream, ssize_t nread, uv_buf_t buf) { | |
vector<char> * data = reinterpret_cast<vector<char> * >(buf.__data); | |
// do something else | |
delete data; | |
} |
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
search = (query, callback) -> | |
await doSearchQuery, defer searchResult | |
callback(null, searchResult) |
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
{ subject: 'Plantar Fasciitis Therapy Wraps, 100 Ft. Expanding Garden Hose, Samsung Galaxy S5 Smartphones & More', | |
to: [ { address: '[email protected]', name: null } ], | |
sender: { address: '[email protected]', name: 'Groupon Goods' }, | |
from: { address: '[email protected]', name: 'Groupon Goods' }, | |
cc: [], | |
bcc: [], | |
attachments: [], | |
internaldate: 1432748540000, | |
uid: 20263, | |
list_id: '<channel-goods_us_im_feynman_SundayWednesday_20150527.groupon>', |
These files aren't complete, but they are plucked out from a successful (closed-source) usage of react-navigation 1.5.8 with react-native-web@latest.
While a blog post would be nice when I have a minute free, I'd like to give this to someone who wants to give it a try before I do.
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
// https://developers.google.com/apps-script/reference/spreadsheet/spreadsheet | |
var ss = SpreadsheetApp.openById("yourSpreadSheetIdHere"); | |
var dataSheet = ss.getSheetByName("data sheet name"); | |
var historySheet = ss.getSheetByName("Historical"); | |
var cell = dataSheet.getRange("A1"); | |
historySheet.appendRow(["a man", "a plan", "panama"]); |
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
package command | |
import ( | |
"fmt" | |
"strings" | |
"github.com/aws/aws-sdk-go/aws" | |
"github.com/aws/aws-sdk-go/aws/awserr" | |
"github.com/aws/aws-sdk-go/aws/session" | |
"github.com/aws/aws-sdk-go/service/lambda" |
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
// secureRedirect redirects this fileId to be loaded directly from S3. | |
// if filename is provided, it will trigger a download of that filename | |
export function secureRedirect({ reply, fileId, filename }) { | |
const key = makeS3Key(fileId); | |
let contentDisposition; | |
if (filename && Buffer.from(filename, 'utf8').toString('ascii') === filename) { | |
contentDisposition = `attachment; filename="${filename}"`; | |
} else if (filename) { | |
const encodedFilename = Querystring.escape(filename); | |
contentDisposition = `attachment; filename*=UTF-8''${encodedFilename}`; |
OlderNewer