Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

X5 Engine x5engine

🎯
Focusing
Block or report user

Report or block x5engine

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
View dadada
Verifying my Blockstack ID is secured with the address 1CfYvziQC6nmeQAduStsDRDDXW2v4APTcx https://explorer.blockstack.org/address/1CfYvziQC6nmeQAduStsDRDDXW2v4APTcx
@x5engine
x5engine / cloud9.sh
Last active Jul 4, 2016
On Click instal Cloud9 with script
View cloud9.sh
# Up-To-Date script as of July 4, 2016
# Tested on: "Linux Ubuntu 14.04 LTS 64-bit"
# Tested on: "Linux Mint 17.2 Cinnamon 32-bit"
# Oracle VirtualBox v5.0.16 r105871
# [- Prepare System -]
sudo apt-get update
sudo apt-get install -y python-software-properties
sudo apt-get install -y python make build-essential g++ curl
View AddTravel.js
var Col = require('react-bootstrap/lib/Col')
var PageHeader = require('react-bootstrap/lib/PageHeader')
var React = require('react')
var Row = require('react-bootstrap/lib/Row')
var {connect} = require('react-redux')
var {reduxForm} = require('redux-form')
var DateInput = require('./DateInput')
var FormField = require('./FormField')
var LoadingButton = require('./LoadingButton')
@x5engine
x5engine / mail-sendgrid.js
Created Jan 23, 2016 — forked from aaronthorp/mail-sendgrid.js
SMTP via SendGrid using Email package with Meteor
View mail-sendgrid.js
if (Meteor.isServer) {
Meteor.startup(function () {
process.env.MAIL_URL = 'smtp://username:password@smtp.sendgrid.net';
Accounts.emailTemplates.siteName = "My Website Name";
Accounts.emailTemplates.from = "My Website Name <noreply@mywebsite.com>";
Accounts.emailTemplates.resetPassword.subject = function(user) {
return "How to reset your password for My Website Name";
View url_slug.js
/**
* Create a web friendly URL slug from a string.
*
* Requires XRegExp (http://xregexp.com) with unicode add-ons for UTF-8 support.
*
* Although supported, transliteration is discouraged because
* 1) most web browsers support UTF-8 characters in URLs
* 2) transliteration causes a loss of information
*
* @author Sean Murphy <sean@iamseanmurphy.com>
View gist:69ff50ceccd9d1f0664b
import os, os.path, time, urllib, urllib2, json, datetime
base = os.getcwd() + '/packages/'
apiUrl = 'https://atmospherejs.com/a/packages/findByNames'
for dirname in os.listdir(base):
max_mtime = 0
if os.path.isdir(base + dirname):
packageName = dirname.replace('-', ':', 1)
for fname in os.listdir(base + dirname):
full_path = base + dirname + '/' + fname
You can’t perform that action at this time.