This file contains hidden or 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
const Octokit = require("@octokit/rest"); | |
const octokit = Octokit({ | |
auth: "GITHUB_AUTH_TOKEN", | |
userAgent: "gh-performyard v1.0.0", | |
baseUrl: "https://api.github.com" | |
}); | |
const owner = "freshdesk"; | |
const repo = "nucleus"; |
This file contains hidden or 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
<!-- | |
AMP4EMAIL is an experimental format. | |
Below is the mininum valid AMP4EMAIL document. Just type away | |
here and the AMP Validator will re-check your document on the fly. | |
--> | |
<!doctype html> | |
<html ⚡4email> | |
<head> | |
<meta charset="utf-8"> |
This file contains hidden or 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
# If you come from bash you might have to change your $PATH. | |
# export PATH=$HOME/bin:/usr/local/bin:$PATH | |
export PATH=$PATH:/usr/local/mysql/bin | |
#Path to your oh-my-zsh installation. | |
export ZSH=/Users/shibulijack/.oh-my-zsh | |
# Set name of the theme to load. Optionally, if you set this to "random" | |
# it'll load a random theme each time that oh-my-zsh is loaded. | |
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes |
This file contains hidden or 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 callHotlineAsync(e,n){var t=document,a="script",c=t.createElement(a),l=t.getElementsByTagName(a)[0];c.src="//"+e,n&&c.addEventListener("load",function(e){n(null,e)},!1),l.parentNode.insertBefore(c,l)} | |
callHotlineAsync('//chat2.hotline.io/js/widget.js', function() { | |
window.HotlineWidget.init({ | |
token: "TOKEN_HERE", | |
host: "https://chat2.hotline.io" | |
}); | |
}); |
This file contains hidden or 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 getYAML() { | |
var ss = SpreadsheetApp.getActiveSpreadsheet(); | |
var dest = DocumentApp.openById(PropertiesService.getScriptProperties().getProperty("output_document_id")); | |
var key = Browser.inputBox("Please enter the key of the Google Spreadsheet containing the content to be generated as a YAML file."); | |
var source = SpreadsheetApp.openById(key); | |
var output = "---\nen:\n"; | |
var sheets = source.getSheets(); | |
for (var i = 0; i < sheets.length; i++) { |
This file contains hidden or 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
// ORIGINAL AUTHOR: MANOJ | |
function getYAML() { | |
var ss = SpreadsheetApp.getActiveSpreadsheet(); | |
var dest = DocumentApp.openById(PropertiesService.getScriptProperties().getProperty("output_document_id")); | |
var key = Browser.inputBox("Please enter the key of the Google Spreadsheet containing the content to be generated as a YAML file."); | |
var source = SpreadsheetApp.openById(key); | |
var output = "---\nen:\n"; | |
var sheets = source.getSheets(); |
This file contains hidden or 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
class Middleman::CoreExtensions::Internationalization < ::Middleman::Extension | |
option :no_fallbacks, false, "Disable I18n fallbacks" | |
option :langs, nil, "List of langs, will autodiscover by default" | |
option :lang_map, {}, "Language shortname map" | |
option :path, "/:locale/", "URL prefix path" | |
option :templates_dir, "localizable", "Location of templates to be localized" | |
option :mount_at_root, nil, "Mount a specific language at the root of the site" | |
option :data, "locales", "The directory holding your locale configurations" | |
def initialize(app, options_hash={}, &block) |
This file contains hidden or 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
# Our custom logger | |
require "middleman-core/logger" | |
# For instrumenting | |
require "active_support/notifications" | |
# Using Thor's indifferent hash access | |
require "thor" | |
# Core Pathname library used for traversal |
This file contains hidden or 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
find ~/Projects/Personal/wordpress -type f -iname '*.html' -exec sed -i.bak 's#http://localhost/wordpress#http://freshdesk.com#g' "{}" + |