I hereby claim:
- I am tombola on github.
- I am treadings (https://keybase.io/treadings) on keybase.
- I have a public key ASC6_K6y-8coEJ4YZ33imFalIQWh0gdrpA7pFM52QvNtDgo
To claim this, I am signing this object:
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
<?php | |
/** | |
* @file | |
* An example of how to pass the item number from a multi-value | |
* entityreference field to the entities concerned. | |
*/ | |
/** | |
* Implements hook_preprocess_field(). |
#!/usr/bin/env bash | |
list_node_viewmodes() { | |
read BRANCH | |
REPLACE='config/sync/core.entity_view_mode.node.' | |
if [[ $BRANCH ]]; then | |
echo '========='$BRANCH | |
echo '' | |
git ls-tree -r --name-only $BRANCH | grep "config\/sync\/core\.entity_view_mode\.node" | \ | |
while read VIEWMODES |
# list ssh host aliases | |
alias sshhosts="grep -w -i "Host" ~/.ssh/config | sed 's/Host//' | sed 's/[[:blank:]]//g'" | |
sshhosts | grep '<part-of-host-name>' |
I hereby claim:
To claim this, I am signing this object:
import os | |
def split(filehandler, delimiter=',', row_limit=10000, | |
output_name_template='output_%s.csv', output_path='.', keep_headers=True, verbose=False): | |
import csv | |
reader = csv.reader(filehandler, delimiter=delimiter) | |
current_piece = 1 | |
current_out_path = os.path.join( | |
output_path, | |
output_name_template % current_piece |
<script src="https://rca.accessplanit.com/accessplansandbox/NetLibrary/ClientScripts/webintegration.js"></script> | |
<script type="text/javascript"> | |
console.log('script ran') | |
var courseOptions = { | |
ListID: 'courses', | |
CourseIDs: [731014], | |
CompanyID: "ROYALC9RCH", | |
CategoryIDs: [] | |
} | |
var opportunityOptions = { |
is a web framework
Used by Instagram, Spotify, The Washington Post, loads of other big and small sites.
There are lots of different ways you can use python. Your end goal might be to use python to process data from spreadsheets, bulk edit a load of images, or analyse genetic code, anything really.
""" | |
Example usage: | |
dj shell < wagtail_list_allowed_subpages.py | |
Returns markdown formatted list of which page types can be added under which. | |
""" | |
def list_valid_page_subpages(readable=False, shorten=False): | |
from wagtail.core.models import Page |
{ | |
"info": { | |
"name": "Control Shift", | |
"description": "For this collection of requests to authenticate, you will need to add a couple of additional variables to an 'environment' and activate that.\n\n- `CS_REST_CLIENT_ID`\n- `CS_REST_CLIENT_SECRET`", | |
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" | |
}, | |
"item": [ | |
{ | |
"name": "CS: Unauth JSON", | |
"item": [ |