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
const map = (arr, cb) => { | |
const res = []; | |
for(let v of arr) { | |
res.push(cb(v)); | |
} | |
return res; | |
}; | |
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
.tabs-and-actions-container > .monaco-scrollable-element { | |
height: auto !important; | |
} | |
.tabs-and-actions-container > .monaco-scrollable-element > .tabs-container { | |
height: auto !important; | |
flex-wrap: wrap; | |
} | |
.monaco-workbench .part.editor>.content .editor-group-container>.title .tabs-container>.tab { |
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
package main | |
import ( | |
"database/sql" | |
"fmt" | |
"log" | |
"math" | |
"runtime" | |
"sync" | |
"time" |
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
@powershell -NoProfile -ExecutionPolicy Bypass -File "install.ps1" | |
pause |
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 functions = {}, | |
benchmark, | |
errors = { | |
network: 'Ошибка связи, сервер не доступен.' | |
}; | |
//Ошибка | |
function error(text) |
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
const textures = { | |
none: "░░", | |
road: "██", | |
user: "*/" | |
}; | |
const mapSize = 30; | |
const locations = [ | |
{ | |
name: "Глеdvбоиния" |
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
const path = require('path'); | |
const HtmlPlugin = require('html-webpack-plugin'); | |
const loaderMerge = require('neutrino-middleware-loader-merge'); | |
const SRC = path.join(process.cwd(), 'src'); | |
module.exports = { | |
use: [ | |
"neutrino-preset-react", | |
({ config, use }) => { |
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 io from 'socket.io-client'; | |
import { parse } from 'graphql'; | |
let socket = null; | |
let queryId = 0; | |
const queryResolvers = new Map(); | |
const queryInstancesCache = new Map(); | |
const fragmentsCache = new Map(); | |
const QueryStatus = { | |
PENDING: 1, |
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
### | |
#Step 1 - Generate server certificates etc... (most of this code is horribly ripped off from nodejs docs currently -> http://nodejs.org/docs/latest/api/tls.html) | |
### | |
#Assuming your starting from a clean directory | |
mkdir server | |
cd server | |
#generate private key |
NewerOlder