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(){ | |
function post_height(){ | |
var msg = JSON.stringify({event:'size', height: document.body.scrollHeight}); | |
window.top.postMessage(msg, '*'); | |
} | |
var onload = window.onload; | |
window.onload = function(){ | |
if( onload && typeof onload =='function'){ |
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 { createUmi } from '@metaplex-foundation/umi-bundle-defaults' | |
import { | |
mplBubblegum, | |
fetchMerkleTree, | |
fetchTreeConfigFromSeeds, | |
} from '@metaplex-foundation/mpl-bubblegum' | |
const endpoint = 'https://api.mainnet-beta.solana.com'; | |
const umi = createUmi(endpoint).use(mplBubblegum()) |
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
### Keybase proof | |
I hereby claim: | |
* I am rakeden on github. | |
* I am rakeden (https://keybase.io/rakeden) on keybase. | |
* I have a public key ASCEGSE7tEC8bfcLK0r3JutS4CAgergfUPoVl1Msj9X1qwo | |
To claim this, I am signing this object: |
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
Allow ALL cross origin requests to WordPress REST API | |
https://github.com/Shelob9/rest-all-cors | |
WordPress theme using Rest API and Vue.js | |
https://github.com/rtCamp/VueTheme | |
WordPress Post from Front End using REST API and Vue.js | |
http://jimfrenette.com/2017/01/post-from-front-end-wp-api-vuejs/ | |
An offline-first SPA using Vue.js, the WordPress REST API and Progressive Web Apps |
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
CSVToArray(strData, strDelimiter) { | |
// Check to see if the delimiter is defined. If not, | |
// then default to comma. | |
strDelimiter = (strDelimiter || ","); | |
// Create a regular expression to parse the CSV values. | |
var objPattern = new RegExp( | |
( | |
// Delimiters. | |
"(\\" + strDelimiter + "|\\r?\\n|\\r|^)" + |
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
# head | |
<link rel="import" href="partials/header.html"> | |
# body | |
<div id="container"></div> | |
<script> | |
var link = document.querySelector('link[rel="import"]'); | |
// Clone the <template> in the import. | |
var template = link.import.querySelector('template'); | |
var clone = document.importNode(template.content, true); |
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
wget http://wordpress.org/latest.tar.gz | |
tar zxf latest.tar.gz | |
cd wordpress | |
cp -rpf * ../ | |
cd ../ | |
rm -rf wordpress/ | |
rm -f latest.tar.gz |
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
var request = require("request"), | |
cheerio = require("cheerio"), | |
url = "https://www.google.com/search?q=data+mining", | |
corpus = {}, | |
totalResults = 0, | |
resultsDownloaded = 0; | |
function callback () { | |
resultsDownloaded++; |