Skip to content

Instantly share code, notes, and snippets.

View benaboki's full-sized avatar

Benedict Omare benaboki

View GitHub Profile
@benaboki
benaboki / Notifications.php
Created March 3, 2022 21:12
discoverables_bundles
<?php
namespace Drupal\custom_logic\Entity\Node;
use Drupal\Core\Annotation\Translation;
use Drupal\Core\Url;
/**
* Class Notifications. Represents the Notficiations Node bundle.
*
@benaboki
benaboki / export_lists.py
Last active August 21, 2019 23:27 — forked from arikfr/export_lists.py
Simple script to export Twitter lists to CSV using Python3
# Tested on Pycharm. You will need to have access to the twitter account and obtain Consumer key and Consumer secret from apps.twitter.com
import twitter # pip install python-twitter
import csv
import io
import codecs
from requests_oauthlib import OAuth1Session # pip install requests requests_oauthlib
REQUEST_TOKEN_URL = 'https://api.twitter.com/oauth/request_token'
ACCESS_TOKEN_URL = 'https://api.twitter.com/oauth/access_token'