Skip to content

Instantly share code, notes, and snippets.

View pjhoberman's full-sized avatar

PJ Hoberman pjhoberman

  • Denver, Colorado
View GitHub Profile
name: Django CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
diff --git a/src/chime_dash/app/components/__init__.py b/src/chime_dash/app/components/__init__.py
index 2956a9f..465578e 100644
--- a/src/chime_dash/app/components/__init__.py
+++ b/src/chime_dash/app/components/__init__.py
@@ -32,6 +32,9 @@ class Body(Component):
"""
"""
super().__init__(language, defaults)
+ print("---")
+ print(LocationComponent())
x = setInterval(function(){
if( Number(document.getElementsByClassName('v2-conversations-list__to-send-count')[0].textContent) > 0){
document.getElementsByTagName('button')[1].click();
} else {clearInterval(x);}}, 250)
answers = {
"Hi": "Hi.",
"HI": "Hi.",
"hi": "Hi.",
"How are you?": "Good, Thanks for Asking,",
}
if Word in answers:
print(answers[Word])
else:
diff --git a/wp-content/scripts/functions.php b/wp-content/scripts/functions.php
index 8bba0c8..da713b2 100755
--- a/wp-content/scripts/functions.php
+++ b/wp-content/scripts/functions.php
@@ -7,7 +7,7 @@ require_once($_SERVER['DOCUMENT_ROOT'] . "/wp-content/scripts/nightout.php");
function set_nightout_globals() {
global $api_url, $api_oauth_string, $api_org_ids, $api_all_events_url;
$api_url = "https://nightout.com/api/events";
- $api_oauth_string = "?oauth_token=3d4zpwlv3g3wmt30x7rqvcosyl57btu";
+ $api_oauth_string = "?oauth_token=1inqpsbritaqkoue50ln8amfozqdlaz";
function add_theme_support_child() {
error_log('add_theme_support_child');
add_theme_support( 'title-tag' );
}
add_action( 'after_setup_theme', 'add_theme_support_child', 11 );
/**
* Change title of a page conditionally
function expand() {
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sh0 = ss.getSheets()[0], sh1 = ss.getSheets()[1], row_counter = 1;
// get data
var data = sh0.getDataRange().getValues();
for(var i in data){
// APN
var apn = data[i][8];
<? /*
* Calendar view
* Privacy of event?
*/
?>
<link rel="stylesheet" type="text/css" href="/wp-content/plugins/eventheaders/tablesorter/themes/blue/style.css">
<style type="text/css">
culinaryconnectors.com@n29:~/domains$ find . -type f -exec grep -HRin "Headway" {} \;
grep: ./foodandbeverageconferences.com/html/gg.php: Permission denied
grep: ./wheretoeatthisweekend.com/html/gg.php: Permission denied
grep: ./foodandbeverageconference.com/html/gg.php: Permission denied
grep: ./culinaryconnectorslive.com/html/gg.php: Permission denied
./toquesandtails.com/html/wp-content/plugins/wordpress-seo/readme.txt:68:Should you have a need to import from another SEO plugin or from a theme like Genesis or Thesis, you can use the [SEO Data Transporter](http://wordpress.org/extend/plugins/seo-data-transporter/) plugin, that'll easily convert your SEO meta data from and to a whole set of plugins like Platinum SEO, SEO Ultimate, Greg's High Performance SEO and themes like Headway, Hybrid, WooFramework, Catalyst etc.
./toquesandtails.com/html/wp-content/plugins/wordpress-seo/changelog.txt:755: * Added new filter to make title work properly on HeadWay 2.0.5 and up.
grep: ./culinaryconnectors.com/html/gg.php
@pjhoberman
pjhoberman / reverse.js
Created August 25, 2014 22:01
Google Sheets Lat/Lng Reverse Geocoder
function getAddressData(placeCoord, result, location) {
var r = result === "" ? "" : "&result_type=" + result;
var l = location === "" ? "" : "&location_type=" + location;
var url = "https://maps.googleapis.com/maps/api/geocode/json?latlng=" + placeCoord + "&key=APP_KEY" + l + r;
var response = UrlFetchApp.fetch(url);
var json = JSON.parse(response);
return json;
}