Skip to content

Instantly share code, notes, and snippets.

Jin hanjin66

Block or report user

Report or block hanjin66

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
@hanjin66
hanjin66 / read-write-file.js
Created Feb 14, 2019
Read Write to file with javascript
View read-write-file.js
/// write to file
var txtFile = "c:/test.txt";
var file = new File(txtFile);
var str = "My string of text";
file.open("w"); // open file with write access
file.writeln("First line of text");
file.writeln("Second line of text " + str);
file.write(str);
file.close();
@hanjin66
hanjin66 / gist:847ba45df5b776dd783a6b4af3928804
Created Nov 10, 2017
Verifying my Blockstack ID is secured with the address 1HC1QCbk5KQTtYnQrhzukQc5JDZcPn2zhK https://explorer.blockstack.org/address/1HC1QCbk5KQTtYnQrhzukQc5JDZcPn2zhK
View gist:847ba45df5b776dd783a6b4af3928804
Verifying my Blockstack ID is secured with the address 1HC1QCbk5KQTtYnQrhzukQc5JDZcPn2zhK https://explorer.blockstack.org/address/1HC1QCbk5KQTtYnQrhzukQc5JDZcPn2zhK
@hanjin66
hanjin66 / blockstack
Created Nov 10, 2017
Verifying my Blockstack ID is secured with the address
View blockstack
1HC1QCbk5KQTtYnQrhzukQc5JDZcPn2zhK https://explorer.blockstack.org/address/1HC1QCbk5KQTtYnQrhzukQc5JDZcPn2zhK
@hanjin66
hanjin66 / gist:60df51570fd0263b4970d7cf4c09c51c
Created Nov 10, 2017
Verifying my Blockstack ID is secured with the address 1HC1QCbk5KQTtYnQrhzukQc5JDZcPn2zhK https://explorer.blockstack.org/address/1HC1QCbk5KQTtYnQrhzukQc5JDZcPn2zhK
View gist:60df51570fd0263b4970d7cf4c09c51c
Verifying my Blockstack ID is secured with the address 1HC1QCbk5KQTtYnQrhzukQc5JDZcPn2zhK https://explorer.blockstack.org/address/1HC1QCbk5KQTtYnQrhzukQc5JDZcPn2zhK
@hanjin66
hanjin66 / background.js
Last active Feb 10, 2017 — forked from danharper/background.js
Bare minimum Chrome extension to inject a JS file into the given page when you click on the browser action icon. The script then inserts a new div into the DOM.
View background.js
// this is the background code...
// listen for our browerAction to be clicked
chrome.browserAction.onClicked.addListener(function (tab) {
// for the current tab, inject the "inject.js" file & execute it
chrome.tabs.executeScript(tab.ib, {
file: 'inject.js'
});
});
You can’t perform that action at this time.