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 golang:1.6.2 | |
| COPY . /go | |
| RUN go get github.com/nats-io/nats | |
| RUN go build api-server.go | |
| EXPOSE 8080 | |
| ENTRYPOINT ["/go/api-server"] |
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
| nginx/ | |
| !nginx/.gitkeep | |
| !nginx/logs/.gitkeep | |
| src/ | |
| tmp/ |
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
| #r "Newtonsoft.Json" | |
| #r "System.Configuration" | |
| #r "Microsoft.IdentityModel.Clients.ActiveDirectory.dll" | |
| using System.Net; | |
| using System.Configuration; | |
| using System.Security.Claims; | |
| using System.Net.Http.Headers; | |
| using Newtonsoft.Json; | |
| using Microsoft.IdentityModel.Clients.ActiveDirectory; |
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
| //this is an example of background animation from my weather comparsion app | |
| //you can get early build of app at http://zowni.com | |
| //full source of background.js below | |
| const React = require('react'); | |
| const Svg = React.createFactory(require('react-native-svg').Svg); | |
| const {interpolate} = require('d3-interpolate'); | |
| //... | |
| /** |
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
| export GITHUB_USER=freeCodeCamp | |
| export REPO=guide | |
| export COMMIT_HASH=6f35bcd61103545136a3ed130124da9822b761ed | |
| #export GITHUB_USER=calcsam | |
| #export REPO=gatsby-image-performance-benchmarking | |
| #export COMMIT_HASH=d2d358ed54ade68c057333666777fd56bef5ebf2 | |
| #export COMMIT_HASH=f05103a1c3e0b25ea4beafd63b6df72953d657b2 | |
| sudo -E su |
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
| { | |
| "Logging": { | |
| "LogLevel": { | |
| "Default": "Debug", | |
| "System": "Information", | |
| "Microsoft": "Information" | |
| }, | |
| "Console": { | |
| "IncludeScopes": true, | |
| "LogLevel": { |
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
| """ | |
| The most atomic way to train and inference a GPT in pure, dependency-free Python. | |
| This file is the complete algorithm. | |
| Everything else is just efficiency. | |
| @karpathy | |
| """ | |
| import os # os.path.exists | |
| import math # math.log, math.exp |
OlderNewer