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
| snap download snapd --revision=24724 | |
| sudo snap ack snapd_24724.assert | |
| sudo snap install snapd_24724.snap | |
| sudo sudo snap refresh --hold snapd |
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
| | python -c "import sys, base64; print(base64.b64decode(sys.stdin.read()).decode())" |
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
| # /// script | |
| # requires-python = ">=3.13" | |
| # dependencies = [ | |
| # "sortedcontainers", | |
| # ] | |
| # /// | |
| from timeit import timeit | |
| import random | |
| from functools import reduce | |
| from sortedcontainers import SortedDict |
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 random | |
| import timeit | |
| from functools import reduce | |
| from collections import Counter | |
| data = [] | |
| for i in range(0,1000000): | |
| data.append({'team': random.choice("ABCDEFGHIJKLMNO"), 'score': random.randint(1,10000)}) | |
| def compute(acc, i): |
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
| #!/usr/bin/env python | |
| import tensorflow as tf | |
| print(tf.__version__) | |
| if tf.test.gpu_device_name(): | |
| print('Default GPU Device:{}'.format(tf.test.gpu_device_name())) | |
| else: | |
| print("Please install GPU version of TF") |
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
| # file: aws_eks_config.yml | |
| # AWS EKS ClusterConfig used to setup the BinderHub / JupyterNotebooks K8s cluster | |
| # using a workaround from https://discourse.jupyter.org/t/binder-deployed-in-aws-eks-domain-name-resolution-errors/766/10 | |
| # to fix broken DNS resolution | |
| --- | |
| apiVersion: eksctl.io/v1alpha5 | |
| kind: ClusterConfig | |
| metadata: | |
| name: eks-dns-production |
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
| #! /usr/bin/env python | |
| import subprocess | |
| import optparse | |
| import os | |
| import sys | |
| __version__ = "1.0.0" | |
| __author__ = "Jeet Sukumaran" |
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
| #!/usr/bin/env python3 | |
| from http.server import HTTPServer, SimpleHTTPRequestHandler, test | |
| import sys | |
| class CORSRequestHandler (SimpleHTTPRequestHandler): | |
| def end_headers (self): | |
| self.send_header('Access-Control-Allow-Origin', '*') | |
| self.send_header('Access-Control-Allow-Headers', 'origin, content-type, accept, authorization') | |
| self.send_header('Access-Control-Allow-Methods', 'GET, POST, HEAD, OPTIONS') | |
| self.send_header('Cache-Control', 'no-store, no-cache, must-revalidate') |
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
| <title>Mac Pro - Apple</title> | |
| <meta name="title" content="Mac Pro - Apple"> | |
| <meta name="description" content="The all-new Mac Pro. Redesigned for extreme performance, expansion, and configurability, it’s a system for pros to push the limits of what is possible."> | |
| <!-- Open Graph / Facebook --> | |
| <meta property="og:type" content="website"> | |
| <meta property="og:url" content="https://www.apple.com/mac-pro/"> | |
| <meta property="og:title" content="Mac Pro - Apple"> | |
| <meta property="og:description" content="The all-new Mac Pro. Redesigned for extreme performance, expansion, and configurability, it’s a system for pros to push the limits of what is possible."> | |
| <meta property="og:image" content="https://www.apple.com/v/mac-pro/f/images/meta/og__o8wgegujpmaq.jpg?202004131555"> |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="UTF-8" /> | |
| <title>Add React in One Minute</title> | |
| </head> | |
| <body> | |
| <h2>Add React in One Minute</h2> | |
| <p>This page demonstrates using React with no build tooling.</p> |
NewerOlder