This file contains hidden or 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 { S3Client, GetObjectCommand } from '@aws-sdk/client-s3' | |
| const s3 = new S3Client() | |
| import { parquetMetadata, toJson } from 'hyparquet' | |
| export async function handler(event) { | |
| console.log('Event received:', JSON.stringify(event, null, 2)) | |
| // The event structure can contain multiple records if multiple files are uploaded at once. | |
| for (const record of event.Records) { | |
| const bucket = record.s3.bucket.name |
This file contains hidden or 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
| app.directive('ngPlaceholder', function() { | |
| return { | |
| restrict: 'A', | |
| require: 'ngModel', | |
| link: function(scope, element, attr, ctrl) { | |
| var value; | |
| var placehold = function () { | |
| element.val(attr.placehold) |
This file contains hidden or 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/sh | |
| ### | |
| # SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer) | |
| # For Sierra or newer, see https://github.com/mathiasbynens/dotfiles/blob/master/.macos | |
| ### | |
| # Alot of these configs have been taken from the various places | |
| # on the web, most from here | |
| # https://github.com/mathiasbynens/dotfiles/blob/5b3c8418ed42d93af2e647dc9d122f25cc034871/.osx |
This file contains hidden or 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 await | |
| import java.util.concurrent.Callable | |
| import java.util.concurrent.Executors | |
| object BlockingDemo extends App { | |
| val execSvc = Executors.newSingleThreadExecutor() | |
| val worker = new MeaningOfLife() |