I hereby claim:
- I am yi-jiayu on github.
- I am jiayu1 (https://keybase.io/jiayu1) on keybase.
- I have a public key whose fingerprint is 6063 3A56 D1AD 52CE 15E7 194B F834 9771 097D 0610
To claim this, I am signing this object:
| "use strict"; | |
| const google = require('googleapis'); | |
| const key = require('./credentials.json'); | |
| const viewId = 'YOUR_VIEW_ID'; | |
| function getUsers(key, viewId) { | |
| // https://github.com/google/google-api-nodejs-client#using-jwt-service-tokens | |
| const jwtClient = new google.auth.JWT( |
| import signal | |
| import sys | |
| from google.cloud import language | |
| from google.api_core.exceptions import InvalidArgument | |
| # create a Google Cloud Natural Languague API Python client | |
| client = language.LanguageServiceClient() | |
I hereby claim:
To claim this, I am signing this object:
| var boxes = document.querySelectorAll('.numScaleAnswerBox'); | |
| var textBoxes = document.querySelectorAll('.mce-content-body'); | |
| [].forEach.call(boxes, function(box) { | |
| box.value = 5; | |
| }); | |
| [].forEach.call(textBoxes, function(box) { | |
| box.textContent = 'Great'; | |
| }); |
| from hashlib import md5 | |
| secret = 'reyedfim' | |
| nonce = 0 | |
| digits = [] | |
| passwd = [None] * 8 | |
| while not all(passwd): | |
| hash = md5() | |
| hash.update('{}{}'.format(secret, nonce).encode('utf-8')) |
| var target = document.getElementById('task'); | |
| var observer = new MutationObserver(function(mutations) { | |
| var x = parseInt(document.querySelector('#task_x').textContent, 10); | |
| var y = parseInt(document.querySelector('#task_y').textContent, 10); | |
| var op = document.querySelector('#task_op').textContent; | |
| var eq = parseInt(document.querySelector('#task_res').textContent, 10); | |
| console.log(x, y, op, eq); | |
| var correct = false; |
| sudo cat /var/log/secure | grep invalid | awk '{ print $9 }' | sort | uniq -c | sort -bnr | less |
| #include <stdio.h> | |
| main(void) { | |
| \\ enter alternate screen mode | |
| printf("\033[?1049h"); | |
| \\ move the cursor to the upper left corner | |
| printf("\033[H"); | |
| printf("Hello, World"); | |
| from collections import namedtuple | |
| Disk = namedtuple('Disk', ['size', 'colour']) | |
| class BicolorTowersOfHanoi(object): | |
| def __init__(self, disks=3): | |
| self._disks = disks | |
| self._moves = 0 | |
| self._towers = {1: [], 2: [], 3: []} |
| module['exports'] = function echoHttp (hook) { | |
| console.log("Console messages are sent to /logs"); | |
| console.log(hook.params); | |
| console.log(hook.req.path); | |
| console.log(hook.req.method); | |