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 ( | |
"encoding/base64" | |
"fmt" | |
rand "math/rand" | |
"time" | |
"github.com/gin-gonic/gin" |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<script src="https://d3js.org/d3.v4.min.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/redux/3.7.2/redux.min.js"></script> | |
</head> | |
<body> | |
<script> | |
const initialState = { |
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 ( | |
mgo "gopkg.in/mgo.v2" | |
"gopkg.in/mgo.v2/bson" | |
"time" | |
) | |
// ========== model |
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
// ========== data | |
const data = [{ | |
"value":49, | |
"childs":[ | |
{"value":54, "childs":[ | |
{"value":25, "childs":[{"value":5, "childs":[]},{"value":5, "childs":[]}]}, | |
{"value":15, "childs":[{"value":25, "childs":[]},{"value":125, "childs":[]},{"value":625, "childs":[]},{"value":55, "childs":[]}]}, | |
{"value":35, "childs":[{"value":25, "childs":[]}]} | |
]}, | |
{"value":55, "childs":[{"value":85, "childs":[]},{"value":45, "childs":[]},{"value":25, "childs":[]}]}, |
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
<!DOCTYPE html><html><head><style type="text/css"> | |
#main_wrapper { | |
margin: 0; | |
padding: 0; | |
overflow: none; | |
} | |
.nvtooltip { | |
position: absolute; | |
background-color: rgba(255,255,255,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
<!DOCTYPE html><html><head><style type="text/css"> | |
#main_wrapper { | |
margin: 0; | |
padding: 0; | |
overflow: none; | |
} | |
.nvtooltip { | |
position: absolute; | |
background-color: rgba(255,255,255,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
<!DOCTYPE html> | |
<html lang="ru"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>pistonizator</title> | |
</head> | |
<body style="text-align: center; font-size: 24px;"> | |
<p>MVC</p> | |
<img id="mainv" src="http://fb.ru/misc/i/gallery/51506/2272349.jpg"></img> | |
<br/> |
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
// ========== array brace validation | |
const edict_arr = [ | |
['[', ']'], | |
['(', ')'], | |
['{', '}'], | |
]; | |
function valid_arr(braces){ |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>pr</title> | |
<style> | |
body { | |
margin: 0px; | |
padding: 0px; |