docker rm -f $(docker ps -aq)
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
function lookupEmails() { | |
// Replace 'Sheet1' with your actual sheet name | |
var sheet = SpreadsheetApp.getActiveSpreadsheet().getSheetByName('Sheet1'); | |
var namesRange = sheet.getRange('A2:A'); // Adjust to your names column range | |
var names = namesRange.getValues(); | |
// Iterate over the names | |
for (var i = 0; i < names.length; i++) { | |
if (names[i][0] !== '') { // If there's a name in the cell | |
var userEmail = getUserEmailByName(names[i][0]); |
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
import pyttsx3 | |
engine = pyttsx3.init() | |
rate = engine.getProperty('rate') | |
first_saying = 'And now for: boots and cats' | |
repeat_saying = 'and boots and cats ' | |
engine.say(first_saying) | |
engine.setProperty('rate', 360) |
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
// Copyright 2015 Steven Leggett. All rights reserved. | |
package main | |
import "fmt" | |
func main() { | |
const ( | |
x string = "Go Lang Fizz Buzz" | |
v string = "1.0.0" |
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
From http://stackoverflow.com/questions/1383126/django-python-beginner-error-when-executing-python-manage-py-syncdb-psycopg2 | |
Just had to unlink postgreSQL | |
`brew unlink postgresql` | |
then | |
`xcode-select --install` | |
and finally | |
`brew install postgresql` |
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
drush pm-list --type=Module --status=enabled |
Suggestions to make Github better.
- /issues need to remember your filters. Changing Milestones every time you view /issues and other flags drives me crazy.
- Wiki search. Under the /wiki, the right hand column called Pages lets you search titles. When your wiki grows and grows we need to search content of pages. Great search makes for finding documentation faster.
- Wiki content, search as you type for files in codebase so you can easily reference source code. Or even have something like :source filename.ext
- Better issue management. For large projects, organizing issues is starting to get too out of control. We have been using Kanban board like Huboard to help prioritize issues. I know others use things like Trello.
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
<?php | |
// We assume that this script is being executed from the root of the Drupal | |
// installation. e.g. ~$ `phpunit TddTests sites/all/modules/tdd/TddTests.php`. | |
// These constants and variables are needed for the bootstrap process. | |
define('DRUPAL_ROOT', getcwd()); | |
require_once DRUPAL_ROOT . '/includes/bootstrap.inc'; | |
$_SERVER['REMOTE_ADDR'] = '127.0.0.1'; |
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
language: php | |
# | |
# Important to note, this is the version of PHP used to run this build, not the | |
# one used to run your Drupal installation. Ensure compatibility with the Drush | |
# and Terminus versions you're using for this build. | |
# | |
php: | |
- 5.3 |
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
/** | |
* Image RollOver Effect | |
* ======================================================================== | |
*/ | |
jQuery(".rollover").hover( | |
function () { | |
var iconName = jQuery(this).attr("src"); | |
var rollover = iconName.replace( /active/, 'rollover' ); | |
jQuery(this).attr({ src: rollover }); | |
}, |
NewerOlder