Skip to content

Instantly share code, notes, and snippets.

Aren Hovsepyan Cartman720

Block or report user

Report or block Cartman720

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
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>
<html>
<head>
<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="https://fonts.googleapis.com/css?family=Roboto:300,400,500">
View Profile page snippet
app.controller("ProfileController", function ($scope, $http, $cookies, $localStorage) {
angular.element(".profile-link").addClass("active-link");
$http.get("/User/Info", { cache: true }).then(function (response) {
$scope.user = response.data.Value;
$scope.isTwoFactor = Boolean($scope.user.Auth);
});
$scope.setKey = function(){
$http.post("/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.