Skip to content

Instantly share code, notes, and snippets.

View ipsycodex's full-sized avatar

Abhishek Patidar ipsycodex

View GitHub Profile
// Includes functions for exporting active sheet or all sheets as JSON object (also Python object syntax compatible).
// Tweak the makePrettyJSON_ function to customize what kind of JSON to export.
var FORMAT_ONELINE = 'One-line';
var FORMAT_MULTILINE = 'Multi-line';
var FORMAT_PRETTY = 'Pretty';
var LANGUAGE_JS = 'JavaScript';
var LANGUAGE_PYTHON = 'Python';
/**
* Retrieves all the rows in the active spreadsheet that contain data and logs the
* values for each row.
* For more information on using the Spreadsheet API, see
* https://developers.google.com/apps-script/service_spreadsheet
*/
function readRows() {
var sheet = SpreadsheetApp.getActiveSheet();
var rows = sheet.getDataRange();
var numRows = rows.getNumRows();
<?xml version="1.0" encoding="UTF-8"?>
<repomd xmlns="http://linux.duke.edu/metadata/repo" xmlns:rpm="http://linux.duke.edu/metadata/rpm">
<revision>1408192433</revision>
<data type="filelists">
<checksum type="sha256">746182ba5683ded1bc39cddb2c094c101f2e8542493ab5f7dc77d16c755f91cc</checksum>
<open-checksum type="sha256">23c864fd126f280ccaede62fafde20809cbf5f418f5f3e6556faa12621a22c75</open-checksum>
<location href="repodata/746182ba5683ded1bc39cddb2c094c101f2e8542493ab5f7dc77d16c755f91cc-filelists.xml.gz"/>
<timestamp>1408192435</timestamp>
<size>22869</size>
<open-size>237659</open-size>
#!/bin/bash
#
# Script to boostrap g4 on a client
#
#
# Don't need pip/virtualenv anymore, so skip it.
#
check_pip () {
if ! which pip >/dev/null 2>&1; then