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
/********** | |
YOUR CHALLENGE, SHOULD YOU CHOOSE TO ACCEPT IT: | |
Modify the code below to work with a list | |
of arbitrary size *without* preallocating a | |
fixed-length array. | |
REPLY @braddwyer ON TWITTER WITH YOUR SOLUTION HERE: | |
https://twitter.com/braddwyer/status/1141744658399334401 | |
(Original challenge via @JadenGeller, https://twitter.com/JadenGeller/status/1141300214654881792 ) |
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
from fastai import * | |
from fastai.text import * | |
from fastai.distributed import * | |
import argparse | |
parser = argparse.ArgumentParser() | |
parser.add_argument("--local_rank", type=int) | |
args = parser.parse_args() | |
torch.cuda.set_device(args.local_rank) | |
torch.distributed.init_process_group(backend='nccl', init_method='env://') |
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
/* | |
Copyright (c) 2017 Brad Dwyer. All rights reserved. | |
This work is licensed under the terms of the MIT license. | |
For a copy, see <https://opensource.org/licenses/MIT>. | |
SceneKit contains a recursive search for childNodes but SpriteKit inexplicably doesn't. | |
So here's an extension that adds one, enjoy. | |
*/ |
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> | |
<head> | |
<script type='text/javascript' src='https://cdn.firebase.com/js/client/1.0.11/firebase.js'></script> | |
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.0/jquery.min.js"></script> | |
<script> | |
$(function() { | |
var ref = new Firebase('https://cyhack.firebaseio.com'); | |
var counter = ref.child('cyhack2'); |