Skip to content

Instantly share code, notes, and snippets.

View chocopuff2020's full-sized avatar

chocopuff chocopuff2020

  • San Francisco, CA
View GitHub Profile
const express = require('express');
const { google } = require('googleapis');
const { sheets } = require('googleapis/build/src/apis/sheets');
const app = express()
const port = 3000
const { convertToExcelInput } = require('./util/formatter');
const QUERY_ALL_QUESTIONS = "query problemsetQuestionList($categorySlug: String, $limit: Int, $skip: Int, $filters: QuestionListFilterInput) {\n problemsetQuestionList: questionList(\n categorySlug: $categorySlug\n limit: $limit\n skip: $skip\n filters: $filters\n ) {\n total: totalNum\n questions: data {\n questionId\n title\n titleSlug\n difficulty\n topicTags {\n slug\n }\n }\n }\n}\n "
const VARIABLES_ALL_QUESTIONS = {"categorySlug":"","filters":{},"limit":2436,"skip":0};
#
# This is the main Apache HTTP server configuration file. It contains the
# configuration directives that give the server its instructions.
# See <URL:http://httpd.apache.org/docs/2.4/> for detailed information.
# In particular, see
# <URL:http://httpd.apache.org/docs/2.4/mod/directives.html>
# for a discussion of each configuration directive.
#
# Do NOT simply read the instructions in here without understanding
# what they do. They're here only as hints or reminders. If you are unsure
199 #
httpd not running, trying to start
(13)Permission denied: AH00072: make_sock: could not bind to address [::]:80
(13)Permission denied: AH00072: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
AH00015: Unable to open logs
mdai@scml-mdai:~_www|⇒ sudo vi /private/etc/apache2/httpd.conf
mdai@scml-mdai:~_www|⇒ sudo apachectl restart
mdai@scml-mdai:~_www|⇒ sudo vi /private/etc/apache2/httpd.conf
mdai@scml-mdai:~_www|⇒ sudo apachectl restart
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "PublicReadGetObject",
"Effect": "Allow",
"Principal": {
"AWS": "*"
},
"Action": "s3:GetObject",
@chocopuff2020
chocopuff2020 / GetIn-MIchelle.md
Last active January 4, 2018 17:24
getIn()-Michelle
var m = {
  username: "Sally",
  profile: {
    name: "Sally Clourian",
    address: {
      city: "Austin",
      state: "TX"
    }
  }
{
"designStyle":[
{
"id":3,
"label":"Contemporary"
},
{
"id":4,
"label":"Country"
},
#!/usr/bin/env node
"use strict";
const meow = require("meow");
const chalk = require("chalk");
const _ = require("lodash");
const cli = meow({
help: ["Usage", " $ convert [commands] [options]"]
});