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 / 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 / ConEmu Git Bash.md
Created Jul 26, 2018 — forked from n3dst4/ConEmu Git Bash.md
My ConEmu / Cmder git bash task config
View ConEmu Git Bash.md
  1. Open Conemu

  2. Open Settings -> Tasks or go to new tab button -> Setup tasks.

  3. Click + to add a new task

  4. Enter the name as Git Bash or whatever you like

  5. Task parameters:

     /icon "C:\Program Files (x86)\Git\etc\git.ico" /dir "C:\_git"
    
  6. Command:

@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 Jan 24, 2018
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.