[ Launch: Game of Life ] eb6dce8a38241912f9b2 by glena
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
package lib | |
import ( | |
"bytes" | |
"io" | |
"strings" | |
"errors" | |
"syscall" | |
"unicode/utf8" | |
) |
I hereby claim:
- I am glena on github.
- I am germanlena (https://keybase.io/germanlena) on keybase.
- I have a public key whose fingerprint is 710B 7134 6752 DB37 29F4 45EA 7D62 BF8D 5ED9 B56C
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
var Promise = require('bluebird'); | |
var request = Promise.promisify(require("request")); | |
var AWS = require('aws-sdk'); | |
function slugify(text) | |
{ | |
return text.toString().toLowerCase() | |
.replace(/\s+/g, '-') // Replace spaces with - | |
.replace(/[^\w\-]+/g, '') // Remove all non-word chars | |
.replace(/\-\-+/g, '-') // Replace multiple - with single - |
First, copy this file, remove the namespace if you are using PHP 5.3
I think it is not using these, but if you need them, copy this two too in the same file for the sake of simplicity
- https://github.com/adoy/PHP-OAuth2/blob/master/src/OAuth2/GrantType/IGrantType.php
- https://github.com/adoy/PHP-OAuth2/blob/master/src/OAuth2/GrantType/AuthorizationCode.php
Put it somewhere is your project and require the file as usual (unless you are using an autoloader, in that case you should know how to handle).
You must provide the following configuration variables:
WP_XMLRPC_URL
=https://www.yourdomain.com/xmlrpc.php
(replace with your domain and use http:// if you don't have SSL support)WP_ADMIN_USER
=admin
(use your own admin username)WP_ADMIN_PASSWORD
=somepassword
(use your own admin password)