- Click on empty space to add node
- Drag from node to node to add edge
- Click/Select + Delete to delete node/edge
- Click/Select Edge + Enter to change edge's weight
- Press Ctrl to Drag node around
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Scenario: | |
$ npm install -g abc | |
..... | |
$ abc | |
-bash: abc: command not found | |
Solution: | |
npm bin -g | |
Add the path to users environment varible |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Install http://zeromq.org/distro:microsoft-windows, choose 64-bit version | |
2. Install https://sourceforge.net/projects/mingw-w64/ | |
a. Choose Version = 8.1.0 | |
b. Choose Architecture = x86_64 | |
3. Add mingw64 to path | |
4. Open cmd, test gcc | |
5. Steps: | |
a. Copy C:\Program Files\ZeroMQ 4.0.4\include\zmq.h | |
b. Copy C:\Program Files\ZeroMQ 4.0.4\include\zmq_utils.h | |
to C:\Program Files\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64\lib\gcc\x86_64-w64-mingw32\8.1.0\include |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// open article with chrome, press f12, paste this code into console | |
$(function() { | |
var A4_HEIGHT = 975; | |
var save = $('#mainTop').detach(); | |
$('body').empty().append(save); | |
$('.pagemove').remove(); | |
$('#regularnews').remove(); | |
$('#soundkana').remove(); | |
$('body').css('background-image', 'none'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <string> | |
#include <sstream> | |
#include <stdio.h> | |
#include <vector> | |
#include <deque> | |
#include <algorithm> | |
#include <list> | |
#include <map> | |
#include <set> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
import os | |
import time | |
import requests | |
from PIL import Image | |
from StringIO import StringIO | |
from requests.exceptions import ConnectionError | |
def go(query, path): | |
"""Download full size images from Google image search. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(function () { | |
var c = []; | |
var d = []; | |
var my_chart = []; | |
var options = { | |
chart: { | |
renderTo: 'container', | |
defaultSeriesType: 'line' | |
}, |
- Click on empty space to add node
- Drag from node to node to add edge
- Click/Select + Delete to delete node/edge
- Click/Select Edge + Enter to change edge's weight
- Press Ctrl to Drag node around
- Click on empty space to add node
- Drag from node to node to add edge
- Click + Delete to delete node/edge -Press Ctrl to Drag node around
NewerOlder