Skip to content

Instantly share code, notes, and snippets.

View HynesIP's full-sized avatar
💭
I'm in the back.

Randell S. Hynes HynesIP

💭
I'm in the back.
View GitHub Profile
isProdEnv = function () {
if (process.env.ROOT_URL == "http://localhost:3000") {
return false;
} else {
return true;
}
}
Accounts.loginServiceConfiguration.remove({
service: 'google'
var AdminController, PostsEditController;
Router.configure({
layoutTemplate: 'Main',
loadingTemplate: 'Loading',
notFoundTemplate: 'NotFound',
load: function() {
$('html, body').animate({
scrollTop: 0
}, 400);
#
# FS Collection
#
profileThumbsStore = new FS.Store.S3('thumb',
accessKeyId : 'XXXXXXXXXXXXXXXXXX'
secretAccessKey : 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
bucket : 'my-bucket-name'
folder : 'thumb'
transformWrite : (fileObj, readStream, writeStream) ->
gm(readStream, fileObj.name()).resize("100", "100").stream().pipe writeStream
@HynesIP
HynesIP / gist:a1a31e3d20cce0e24cdd16d3c18c7f7e
Created August 17, 2018 19:26 — forked from bhurlow/gist:3043629
Linux Screen Cheat Sheets
–ctrl a c -> cre­ate new win­dow
–ctrl a A -> set win­dow name
–ctrl a w -> show all win­dow
–ctrl a 1|2|3|… -> switch to win­dow n
–ctrl a ” -> choose win­dow
–ctrl a ctrl a -> switch between win­dow
–ctrl a d -> detach win­dow
–ctrl a ? -> help
–ctrl a [ -> start copy, move cur­sor to the copy loca­tion, press ENTER, select the chars, press ENTER to copy the selected char­ac­ters to the buffer
–ctrl a ] -> paste from buffer
@HynesIP
HynesIP / findReplace.js
Last active June 16, 2019 15:39 — forked from Paradoxis/findReplace.js
Find and replace double curly braces in JavaScript, example: findReplace("Hello, {{ name }}", "name", "John"); // "Hello, John"
/**
* Format double braced template string
* @param {string} string
* @param {string} find
* @param {string} replace
* @returns {string}
*/
function Maparameter(string, find, replace)
{
if ((/[a-zA-Z\_]+/g).test(string)) {
@HynesIP
HynesIP / bitbucket-pipelines.yml
Created September 22, 2021 23:23 — forked from krunal86/bitbucket-pipelines.yml
Angular + Bitbucket Pipeline + Continuous Integration
# This is a sample build configuration for JavaScript.
# Check our guides at https://confluence.atlassian.com/x/14UWN for more examples.
# Only use spaces to indent your .yml configuration.
# -----
# You can specify a custom docker image from Docker Hub as your build environment.
image: node:8.10
pipelines:
default:
- step: