Skip to content

Instantly share code, notes, and snippets.

View baisong's full-sized avatar

Oren Robinson baisong

View GitHub Profile
<div id="webring">
<script type="text/javascript" src="https://server-friends-ring.glitch.me/onionring-variables.js"></script>
<script type="text/javascript" src="https://server-friends-ring.glitch.me/onionring-widget.js"></script>
</div>
@baisong
baisong / Chrome_Selenium.py
Last active October 5, 2022 20:46
Works on Ubuntu Linux w Python3
import time
import os
import difflib
import utils
from selenium import webdriver
from selenium.webdriver.chrome.options import Options as ChromeOptions
from pathlib import Path
from datetime import datetime
import webbrowser
import pyautogui
{
"info" : {
"version" : "1.0.5",
"title" : "CA Census 2020 SwORD Outreach Reporting API",
"description" : "CA Census 2020 SwORD Outreach Reporting API"
},
"host" : "virtserver.swaggerhub.com",
"basePath" : "/alexaninnovation/CACensusOutreach/1",
"schemes" : [ "https" ],
"securityDefinitions" : {
Error: Call to undefined method Drupal\views\Entity\Render\ConfigurableLanguageRenderer::preRenderByRelationship() in Drupal\views\Plugin\views\row\EntityRow->preRender() (line 251 of /srv/bindings/d2a112bd176d49d8b9898b04a9a4bbe8/code/core/modules/views/src/Plugin/views/row/EntityRow.php)
#0 /srv/bindings/d2a112bd176d49d8b9898b04a9a4bbe8/code/core/modules/views/src/Plugin/views/style/StylePluginBase.php(434): Drupal\views\Plugin\views\row\EntityRow->preRender(Array)
#1 /srv/bindings/d2a112bd176d49d8b9898b04a9a4bbe8/code/core/modules/views/src/ViewExecutable.php(1508): Drupal\views\Plugin\views\style\StylePluginBase->preRender(Array)
#2 /srv/bindings/d2a112bd176d49d8b9898b04a9a4bbe8/code/core/modules/views/src/Plugin/views/display/Page.php(183): Drupal\views\ViewExecutable->render()
#3 /srv/bindings/d2a112bd176d49d8b9898b04a9a4bbe8/code/core/modules/views/src/ViewExecutable.php(1630): Drupal\views\Plugin\views\display\Page->execute()
#4 /srv/bindings/d2a112bd176d49d8b9898b04a9a4bbe8/code/core/modules/vi
<?php
namespace Drupal\views\Plugin\views\row;
use Drupal\Core\DependencyInjection\DeprecatedServicePropertyTrait;
use Drupal\Core\Entity\EntityDisplayRepositoryInterface;
use Drupal\Core\Entity\EntityRepositoryInterface;
use Drupal\Core\Entity\EntityTypeManagerInterface;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Language\LanguageManagerInterface;

Keybase proof

I hereby claim:

  • I am baisong on github.
  • I am orenrobi (https://keybase.io/orenrobi) on keybase.
  • I have a public key ASBaOs-QJiiyqlM9k5TBzuD38k505TvuB0LYm7Ztp_vKPgo

To claim this, I am signing this object:

<?php
/**
* Random Datetime stuff
*/
function example_field_modify() {
$timezone = new DateTimeZone('Asia/Kolkata');
new DateTime($datestring, $tz);
// Create an entity with a date that we'll enter in Amercia/New York time.
var i = 0;
for (i > 1);
@baisong
baisong / Google-Play-Music-autoplay.js
Last active June 24, 2017 19:55
Tampermonkey-compatible Chrome user script to enable autoplay on Google Play Music URLs.
// ==UserScript==
// @name Google Play Music Autoplay
// @namespace https://play.google.com/music
// @version 0.1
// @description Provides autoplay options via url parameters on song or playlist URLs
// @author https://gist.github.com/baisong/fdf8df8ebd7e4852a2b8d5cacb373418
// @require http://code.jquery.com/jquery-1.11.3.min.js
// @include http://play.google.com/music/listen*
// @include https://play.google.com/music/listen*
// @include http://music.google.com/music/listen*
#############################
#
# Usage:
# ./mergepdf Example
# >> Example.pdf
#
# Run inside a directory with PDFs named like page1.pdf page2.pdf...
#
#############################
FILENAME=$1