I hereby claim:
- I am lexfro on github.
- I am fckt (https://keybase.io/fckt) on keybase.
- I have a public key ASAAS5oUGRYOkXAc0ENjt-p5FIvMyhpwp0kcWje8W_WsLQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
https://github.com/lexfrl
// The 'VIRTUAL' location bar | |
import React, { PropTypes } from "react"; | |
import Logo from "../components/Logo"; | |
import slots from "../slots"; | |
const Location = React.createClass({ | |
getInitialState() { | |
return { | |
pushState: true |
import React, { PropTypes } from 'react' | |
import { OverlayMountPoint, OverlayView, OverlayToggle } from './overlay' | |
function somewhereOnTheTopOffTheAppTree() { | |
return ( | |
<div> | |
<OverlayMountPoint /> // SnapshotsEditDialog will be rendered here | |
</div> | |
) | |
} |
let types = Schema.getTypeMap(); | |
Object.keys(types).forEach((key) => { | |
let fields = types[key]._fields; | |
if (!fields) { | |
return; | |
} | |
Object.keys(fields).forEach((tKey) => { | |
let field = fields[tKey]; |
import r from "rethinkdb" | |
queries: { | |
user: ({ session }) => { | |
return r.table("users").get(session.userId) | |
}, | |
results: ({route: {params: { id }}}) => { | |
return r.table("results").get(id) | |
} | |
} |
import React from "react"; | |
import router from "../../../router"; | |
import { relocate } from "../../actions"; | |
const Link = React.createClass({ | |
render() { | |
let route = {}; | |
if (this.props.href) { | |
let hrefRoute = router.match(this.props.href); |
const ObjectID = mongodb.ObjectID; | |
var cacheVk = {}; | |
/** | |
* @TODO: add token refresh logicб fallback ect | |
*/ | |
export function vk (userId, db = null, f = null, collName = "users", tokPath = "vk.session.sid") { | |
let project = {}; | |
project[tokPath] = 1; |
Open /etc/sysctl.conf with: | |
sudo nano /etc/sysctl.conf | |
Scroll down to the last line of the file and add the line: | |
net.ipv4.ip_forward=1 | |
sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE | |
sudo iptables -A FORWARD -i eth0 -o wlan0 -m state --state RELATED,ESTABLISHED -j ACCEPT | |
sudo iptables -A FORWARD -i wlan0 -o eth0 -j ACCEPT |
server.use("/api", (req, res, next) => { | |
let route = router.match(req.url); | |
let service = null; | |
try { | |
service = require("./api/" + route.name.replace(".", "-")); | |
} catch (e) { | |
console.log(e.message); | |
res.status(404).send("Not Found"); | |
return; | |
} |