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
############ | |
### ipfs ### | |
############ | |
ipfs: | |
container_name: ipfs-node | |
image: ipfs/go-ipfs:latest | |
environment: | |
IPFS_PROFILE: ${IPFS_PROFILE} | |
IPFS_PATH: ${IPFS_PATH} |
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
// SPDX-License-Identifier: MIT | |
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) | |
pragma solidity ^0.8.0; | |
import "../utils/Context.sol"; | |
/** | |
* @dev Contract module which provides a basic access control mechanism, where | |
* there is an account (an owner) that can be granted exclusive access to |
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
mike$ npm install | |
npm WARN deprecated [email protected]: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies. | |
npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142 | |
npm WARN deprecated [email protected]: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2. | |
npm WARN deprecated [email protected]: use String.prototype.padStart() | |
npm WARN deprecated [email protected]: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3. | |
> [email protected] install /Users/mike/hack/testing/node_modules/jest-haste-map/node_modules/fsevents | |
> node install.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
import { Application } from "https://deno.land/x/oak/mod.ts"; | |
import { config } from "https://deno.land/x/dotenv/mod.ts"; | |
const app = new Application(); | |
const { HOST, PORT } = config(); | |
console.log(`Listening on port:${PORT}...`); | |
await app.listen(`${HOST}:${PORT}`); |
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
Yarn is a package manager that wraps around the existing node package manager (npm). | |
The main advantages yarn offers are around the install process of node modules and how those are cached in a yarn.lock file. | |
If you have worked with node_modules before, you might be familiar with npm-shrinkwrap.json. Essentially think of yarn.lock | |
as a replacement for npm-shrinkwrap.json. | |
We recommend choosing yarn.lock over npm-shrinkwrap.json in production because it gives more reliable and deterministic builds. | |
To get started with yarn, you'll need to download it: https://yarnpkg.com/en/docs/install |
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
(ns cljs-playground.core | |
(:require [om.core :as om :include-macros true] | |
[om.dom :as dom :include-macros true])) | |
(enable-console-print!) | |
(def app-state | |
(atom | |
{:comments-data [{ :author "Commenter 1" :text "comment 1" } | |
{ :author "Commenter 2" :text "comment 2" }]})) |
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
var express = require("express"), | |
http = require("http"), | |
app = express(), | |
port = process.env.PORT || 3000, | |
socketio = require('socket.io'), | |
imdb = require('imdb-api'); | |
app.use(express.static(__dirname + '/dist')); | |
var server = http.createServer(app); |
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
app.controller('MapCtrl', ['$scope', '$rootScope', function ($scope, $rootScope) { | |
$scope.lat = 40.722283; | |
$scope.lng = -74.005623; | |
$scope.mapOptions = { | |
center: new google.maps.LatLng($scope.lat, $scope.lng), | |
zoom: 15, | |
mapTypeId: google.maps.MapTypeId.ROADMAP | |
}; |
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
// inject $rootScope into application when we bootstrap | |
// call below line of code when save is called after | |
// client has been switched (ie. we have called the re-assign dialog and user clicked continue) | |
$rootScope.$broadcast('clientChange'); | |
app.controller('MainCtrl', function MainCtrl() { | |
$scope.MainClientSelected = {}; | |
$scope.Client2Selected = {}; |
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
import java.io.DataInputStream; | |
import java.io.DataOutputStream; | |
import java.io.IOException; | |
import java.net.InetAddress; | |
import java.net.ServerSocket; | |
import java.net.Socket; | |
import java.util.Arrays; | |
import java.util.logging.Logger; | |
/** |
NewerOlder