Skip to content

Instantly share code, notes, and snippets.

Aren Hovsepyan Cartman720

View GitHub Profile
View Canvas.jsx
import React, { Component } from 'react'
import { withStyles } from 'material-ui/styles';
import Button from 'material-ui/Button';
import AddIcon from 'material-ui-icons/Add';
import Dialog from 'material-ui/Dialog';
import AppBar from 'material-ui/AppBar';
import Toolbar from 'material-ui/Toolbar';
import IconButton from 'material-ui/IconButton';
import Typography from 'material-ui/Typography';
import CloseIcon from 'material-ui-icons/Close';
View index.html
<!doctype html>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="mobile-web-app-capable" content="yes">
<meta name="HandheldFriendly" content="true"/>
<link rel="stylesheet" href=",400,500">
View Profile page snippet
app.controller("ProfileController", function ($scope, $http, $cookies, $localStorage) {
$http.get("/User/Info", { cache: true }).then(function (response) {
$scope.user =;
$scope.isTwoFactor = Boolean($scope.user.Auth);
$scope.setKey = function(){
$"/User/Twoauth/Set", {secret:$scope.generatedKey.Secret,code:$scope.generatedKey.Code}).then(function (response) {
View NodeJS API Client
var request = require("request"),
querystring = require("querystring");
module.exports = function(){
this.get = function (options,callback){
var Options = function(options){
this.method = "GET";
You can’t perform that action at this time.