View gopro-clip-mount.stl
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View qc_for_cs_notebook.jl
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
### A Pluto.jl notebook ### | |
# v0.12.18 | |
using Markdown | |
using InteractiveUtils | |
# ╔═╡ 72d474ec-4327-11eb-26d0-072a3be1e84f | |
begin | |
using Pkg | |
View qc_for_cs_notebook.html
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta name="viewport" content="width=device-width" /> | |
<title>⚡ Pluto.jl ⚡</title> | |
<meta charset="utf-8" /> | |
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/fonsp/Pluto.jl@0.12.17/frontend/editor.css" type="text/css" /> | |
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/fonsp/Pluto.jl@0.12.17/frontend/treeview.css" type="text/css" /> | |
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/fonsp/Pluto.jl@0.12.17/frontend/hide-ui.css" type="text/css" /> |
View curry.ts
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
type Func = (...args: any[]) => any; | |
type FirstParam<T extends Func> = | |
T extends (arg: infer J, ...args: infer U) => infer V | |
? J | |
: never; | |
type TailParams<T extends Func> = | |
T extends (arg: infer J, ...args: infer U) => infer V | |
? U |
View renew-mongo-cert.sh
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
#!/bin/bash | |
# Define variables | |
DOMAIN=foo.example.com | |
# renew cert | |
certbot renew | |
# combine latest letsencrypt files for mongo |
View GlobalCalculator_V2.sol
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
pragma solidity ^0.4.21; | |
import './GlobalCalculator.sol'; | |
contract GlobalCalculator_V2 is GlobalCalculator_V1 { | |
function getMul() public view returns (uint mul) { | |
mul = 1; | |
for (uint i = 0;i < _nums.length; i++) { | |
mul *= _nums[i]; |
View GlobalCalculator_V1.sol
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
pragma solidity ^0.4.21; | |
contract GlobalCalculator_V1 { | |
uint[] internal _nums; | |
function addNum(uint x) public { | |
_nums.push(x); | |
} | |
function getSum() public view returns (uint sum) { |
View UpgradeableContractProxy.sol
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
pragma solidity ^0.4.21; | |
import "./Ownable.sol"; | |
contract UpgradeableContractProxy is Ownable { | |
address private _currentImplementation; | |
function UpgradeableContractProxy() public Ownable() { | |
} |
View TestStringToUintMap.sol
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
pragma solidity ^0.4.15; | |
import "truffle/Assert.sol"; | |
import { StringToUintMap } from "../libraries/StringToUintMap.sol"; | |
contract TestStringToUintMap { | |
StringToUintMap.Data private _stringToUintMapData; | |
function testInsertNewKey() { | |
// Arrange |
View truffle.js
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
module.exports = { | |
networks: { | |
development: { | |
host: "localhost", // Ganache RPC server URL | |
port: 7545, // Ganache RPC server Port | |
network_id: "*" // Match any network id | |
} | |
} | |
}; |
NewerOlder