Skip to content

Instantly share code, notes, and snippets.

😳
Still alive

unmem unmem

😳
Still alive
Block or report user

Report or block unmem

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
@unmem
unmem / alexa.js
Created Jun 22, 2019 — forked from chilts/alexa.js
Getting the Alexa top 1 million sites directly from the server, unzipping it, parsing the csv and getting each line as an array.
View alexa.js
var request = require('request');
var unzip = require('unzip');
var csv2 = require('csv2');
request.get('http://s3.amazonaws.com/alexa-static/top-1m.csv.zip')
.pipe(unzip.Parse())
.on('entry', function (entry) {
entry.pipe(csv2()).on('data', console.log);
})
;
@unmem
unmem / laughing-man.svg
Created May 23, 2019 — forked from johan/laughing-man.svg
The Laughing Man (Ghost in the Shell), 1000 byte SVG :-)
View laughing-man.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@unmem
unmem / async.js
Last active Jul 21, 2018
Javascript SetTimeout asynchronomous Test...
View async.js
var changed = false;
setTimeout(function () {
console.log("I'm hacking in setTimeout~~~");
changed = true;
})
while (true) {
if (changed) {
console.log("The system has been hacked by outer program. Exiting...");
@unmem
unmem / promise_demo_1.js
Last active Jul 21, 2018
Javascript promise
View promise_demo_1.js
// http://jsfiddle.net/mkjh2ev5/1245/
let cleanRoom = function() {
return new Promise(function(resolve, reject) {
resolve('Cleaned The Room');
});
};
let removeGarbage = function(message) {
return new Promise(function(resolve, reject) {
@unmem
unmem / GitHubApi.md
Last active May 23, 2018
GitHub Api Test
View GitHubApi.md

curl "https://api.github.com/emojis"

Response
Status: 200 OK
{
  "+1": "https://github.global.ssl.fastly.net/images/icons/emoji/+1.png?v5",
  "-1": "https://github.global.ssl.fastly.net/images/icons/emoji/-1.png?v5",
   "100": "https://github.global.ssl.fastly.net/images/icons/emoji/100.png?v5",
  "1234": "https://github.global.ssl.fastly.net/images/icons/emoji/1234.png?v5",
  "8ball": "https://github.global.ssl.fastly.net/images/icons/emoji/8ball.png?v5",
View drawShpereUseMesh.m
theta = linspace(0, 2*pi, 40);
phi = linspace(0, pi, 40);
[theta, phi] = meshgrid(theta, phi);
rho=1;
x = rho * sin(phi) .* cos(theta);
y = rho * sin(phi) .* sin(theta);
z = rho * cos(phi);
@unmem
unmem / helloworld.c
Last active Jun 22, 2019
My First Gist
View helloworld.c
#include <stdlib.h>
#include <stdio.h>
int main()
{
printf("hello, world\n");
return 0;
}
You can’t perform that action at this time.