Skip to content

Instantly share code, notes, and snippets.

Avatar

Joachim Verbeke intergalactic-overlords

View GitHub Profile
@intergalactic-overlords
intergalactic-overlords / rename.js
Created Dec 3, 2019
replace all package.json byindex.js
View rename.js
var fs = require('fs');
var path = require('path');
const replacePackageByIndex = function(dir) {
const list = fs.readdirSync(dir);
const dirName = path.basename(dir)
list.forEach(function(file) {
if (file === "package.json") {
fs.writeFile(`${dir}/index.js`, createIndexContents(dirName), (err) => {
if (err) {
@intergalactic-overlords
intergalactic-overlords / gist:83114074087666967da3
Created Mar 5, 2015
gulp task for running protractor e2e test on saucelabs through sauce connect
View gist:83114074087666967da3
var sauceConnectLauncher = require('sauce-connect-launcher');
// connects to saucelabs server and runs protractor e2e tests against saucelabs server
gulp.task('e2e_protractor_sauce', function() {
sauceConnectLauncher({
username: 'xxx',
accessKey: 'xxxx',
// logger: console.log
}, function (err, sauceConnectProcess) {
if (err) {
View Create the following folders and files in your theme
folder ds_layouts
> folder ds_1col_linked
> file ds-1col-linked.tpl.php
> file ds_1col_linked.inc
View Allowed html elements
<a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd> <h2> <h3> <h4> <p> <br/> <img> <table> <thead> <tbody> <tfoot> <tr> <th> <td> <hr/>
You can’t perform that action at this time.