This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/home/jupyter/AIHub:~$ nohup sudo papermill \ | |
/home/jupyter/AIHub/training-local-args.ipynb \ | |
/home/jupyter/AIHub/training-output.ipynb -p epochs 2 & | |
/home/jupyter/AIHub:~$ disown |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"log" | |
"sync" | |
"golang.org/x/net/context" | |
"golang.org/x/time/rate" | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:(function(){function d(b,a){if(k=document.getElementsByClassName(b))if(e=k[0])e.classList.contains(a)?(console.log("contains newClass"),l=new RegExp("(?:^|\\s)"+a+"(?!\\S)","g"),e.className=e.className.replace(l,"")):(console.log("doesnt contain newClass"),e.className+=" "+a)}function m(a){var b=!1,c=document.styleSheets;if(c)for(var e=document.styleSheets.length,d=0;d<e;d++){var f=c[d];try{for(var g=!1,h=f.cssRules.length;h--;)(g=f.cssRules[h])&&g.selectorText&&g.selectorText==a&&(b=g)}catch(n){}}return b} | |
function f(a,b){m(a)||document.styleSheets[0].insertRule(a+" {"+b+" }",0);return m(a)}var k,e,l;var c="aAU";var b="new_body_font_family";var a="font-family: Helvetica,Arial,sans-serif !important";f("body, div, span, td, input, textarea, select ."+b,a);d(c,b,a);c="nH bAw nn";b="new_extension_panel_display";a="display: none";f("."+b,a);d(c,b,a);c="wT bQ";b="new_folder_panel_inner_width";a="max-width: 190px !important; min-width: 190px !important";f("div."+b,a);d(c,b,a);c="nH oy8Mbf nn aeN";b="new_ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript: (function() { | |
/* Adjust these settings to your preference */ | |
var newFolderPanelOuterWidth = '200px'; | |
var newFolderPanelInnerWidth = '190px'; | |
var selector; | |
var newClass; | |
var property; | |
var elements; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Based on | |
// - Admin SDK Directory API Go quickstart - https://developers.google.com/admin-sdk/directory/v1/quickstart/go | |
// - Go By Example: Mutexes - https://gobyexample.com/mutexes | |
// | |
// Libraries | |
// - https://github.com/tevino/abool | |
// - https://github.com/jawher/mow.cli | |
// | |
// Sample invocation: | |
// ./grploadtest -d=workshop1.cloud-eval.com -s=1 list -u=testuser |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<jmeterTestPlan version="1.2" properties="4.0" jmeter="4.0 r1823414"> | |
<hashTree> | |
<TestPlan guiclass="TestPlanGui" testclass="TestPlan" testname="Test Plan Template" enabled="true"> | |
<stringProp name="TestPlan.comments"></stringProp> | |
<boolProp name="TestPlan.functional_mode">false</boolProp> | |
<boolProp name="TestPlan.tearDown_on_shutdown">true</boolProp> | |
<boolProp name="TestPlan.serialize_threadgroups">false</boolProp> | |
<elementProp name="TestPlan.user_defined_variables" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true"> | |
<collectionProp name="Arguments.arguments"/> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Based on | |
// - Admin SDK Directory API Go quickstart - https://developers.google.com/admin-sdk/directory/v1/quickstart/go | |
// - Go By Example: Mutexes - https://gobyexample.com/mutexes | |
package main | |
import ( | |
//"bytes" | |
"encoding/json" | |
"flag" | |
"fmt" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Based on | |
// - Admin SDK Directory API Go quickstart - https://developers.google.com/admin-sdk/directory/v1/quickstart/go | |
// - Go By Example: Mutexes - https://gobyexample.com/mutexes | |
package main | |
import ( | |
"encoding/json" | |
"flag" | |
"fmt" | |
"io/ioutil" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Get a GCS Signed URL | |
* | |
* @param {object} JSON credential | |
* @param {string} the base URL to sign | |
* @param {string} optional; TTL in seconds, defaults to 60 | |
* @param {string} optional; the httpVerb, eg. 'GET','POST'; defaults to 'GET' if not specified | |
* @param {string} optional; the content type, ie. one of the valid mime content types. Your HTMLService HTTP header must set have a matching content type | |
* @return {string} The complete URL. | |
* @private |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var numRetries = 3; | |
var getSpreadsheet = partial(function() {return SpreadsheetApp.getActiveSpreadsheet()}); | |
var spreadsheet = retry_(getSpreadsheet, numRetries); | |
var documentTitle = '[DOCUMENT_TITLE]'; | |
var createDocument = partial(function(key) {return DocumentApp.create(key)},documentTitle); | |
var document = retry_(createDocument, numRetries, documentTitle); |