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
const input2 = '"<View><ExpoStatusBar style=\"{ \"flex\": 1}\" yeet="yaw"></ExpoStatusBar></View>"' | |
class Attrib { | |
name: string; | |
val: string; | |
constructor(name: string, val: string){ | |
this.name = name | |
this.val = val | |
} |
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 main | |
import ( | |
"context" | |
"crypto/rand" | |
"encoding/json" | |
"fmt" | |
firecracker "github.com/firecracker-microvm/firecracker-go-sdk" | |
models "github.com/firecracker-microvm/firecracker-go-sdk/client/models" | |
"io" |
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
#simple firecracker hello world with networking | |
set -eu | |
[ -e hello-vmlinux.bin ] || wget https://s3.amazonaws.com/spec.ccfc.min/img/hello/kernel/hello-vmlinux.bin | |
[ -e hello-rootfs.ext4 ] || wget -O hello-rootfs.ext4 https://raw.githubusercontent.com/firecracker-microvm/firecracker-demo/ec271b1e5ffc55bd0bf0632d5260e96ed54b5c0c/xenial.rootfs.ext4 | |
[ -e hello-id_rsa ] || wget -O hello-id_rsa https://raw.githubusercontent.com/firecracker-microvm/firecracker-demo/ec271b1e5ffc55bd0bf0632d5260e96ed54b5c0c/xenial.rootfs.id_rsa | |
TAP_DEV="fc-88-tap0" |
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
pragma solidity >=0.7.0 <0.8.0; | |
contract rankingApp | |
{ | |
uint256 nThings; | |
address private owner; | |
mapping (string => uint256) public things; | |
mapping (uint256 => uint256) public ratings; | |
constructor() { |
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
"LambdaApiGatewayRole": { | |
"Type": "AWS::IAM::Role", | |
"Properties": { | |
"AssumeRolePolicyDocument": { | |
"Version": "2012-10-17", | |
"Statement": [{ "Effect": "Allow", "Principal": {"Service": ["lambda.amazonaws.com"]}, "Action": ["sts:AssumeRole"] }] | |
}, | |
"Path": "/", | |
"Policies": [ | |
{ |
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
from PyQt5.QtWidgets import QWidget, QHBoxLayout, QVBoxLayout, QPushButton | |
from PyQt5.QtCore import Qt | |
class EditableListWidget(QWidget): | |
def __init__(self, parent): | |
super(QWidget, self).__init__(parent) | |
self.layout = QVBoxLayout() | |
self.listWidget = QListWidget() |
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/bash | |
if [ $# -ne 1 ] | |
then | |
echo "Usage: enter one argment for the static site/bucket name" | |
exit 0 | |
fi | |
aws s3 sync --acl public-read --sse --delete . s3://$1 |
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/bash | |
if [ $# -ne 1 ] | |
then | |
echo "Usage: enter one argment for the static site/bucket name" | |
exit 0 | |
fi | |
aws s3 mb s3://$1 | |
aws s3 website s3://$1 --index-document index.html --error-document error.htm |
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
//implements a basic proof-of-work system in C. Code by quin2 | |
/* | |
note: mining in this case is pretty easy beacuse our hash algo isn't computationally intensive, plus we're not | |
encoding a whole lot of data | |
*/ | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <math.h> |
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
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"> | |
<nav class="navbar turnBlue navbar-fixed-top"> | |
<div class="container"> | |
<ul class="nav navbar-nav"> | |
<li><a href="#WORK">progress</a></li> | |
<li><a href="#DONE">complete</a></li> | |
<li><a href="#SOCIAL">social</a></li> | |
</ul> | |
</div> |