- https://en.wikipedia.org/wiki/Python_(programming_language)
- https://github.com/gto76/python-cheatsheet
- https://learnxinyminutes.com/docs/python/
User Guide
https://pandas.pydata.org/docs/user_guide/index.html
Workshop
| #! /bin/bash | |
| set -e | |
| cat schema/*.graphql | \ | |
| rover subgraph check \ | |
| --schema - \ | |
| --name retail-graph \ | |
| retail@staging | |
| # frozen_string_literal: true | |
| require 'base64' | |
| require 'openssl' | |
| require 'securerandom' | |
| def decrypt_data(encrypted_data, encryption_key) | |
| cipher = OpenSSL::Cipher.new('AES-256-CBC') | |
| cipher.decrypt | |
| cipher.key = encryption_key |
| { | |
| "name": "UCD Modularization Demo", | |
| "required_variables": { | |
| "primary_rooftop_id": "Integer" | |
| }, | |
| "default_variables": { | |
| "primary_rooftop_id": 39, | |
| "central_services_rooftop_id": 39, | |
| "dashboard_owner_id": 6 | |
| }, |
| <div id="row"> | |
| <h1 id="heading" contenteditable="true">Hello world</h1> | |
| <h4 id="strapline" contenteditable="true">Welcome to my new website</h4> | |
| <span><a class="button" href="https://daviddarnes.github.io/splashed" target="_blank">full demo</a></span> | |
| </div> |
| /** | |
| * spigot.js | |
| * version 1.1.0 | |
| * (C) 2012 shin <s2pch.luck at gmail.com> | |
| * Licensed under the Apache License 2.0 | |
| * http://opensource.org/licenses/apache2.0 | |
| * | |
| * The Pi calculation is based on the spigot (streaming) algorithm[1]. | |
| * This library depends on jsbn[2] (jsbn.js and jsbn2.js), | |
| * one of BigInteger library written by pure JavaScript. |
| // Not working due to <Switch>? | |
| class LoginRequired extends React.Component { | |
| componentWillMount() { | |
| let children = this.props.children; | |
| if (!this.props.loggedIn) { | |
| children = this.props.children.map((child, index) => { | |
| const redirectProps = { render: () => (<Redirect to="/" />), key: index } | |
| const propsWithRedirect = Object.assign(redirectProps, child.props) | |
| propsWithRedirect.component = undefined |
| { | |
| "version": "0.1.0", | |
| "command": "dotnet", | |
| "isShellCommand": true, | |
| "showOutput": "silent", | |
| "tasks": [ | |
| { | |
| "taskName": "restore", | |
| "suppressTaskName": true, | |
| "args" : ["restore"], |
| <html> | |
| <head> | |
| <%= stylesheet_link_tag 'sso' %> | |
| <%= javascript_include_tag 'jquery' %> | |
| <script> | |
| $(document).ready(function() { | |
| var trusted = false; | |
| try { | |
| new ActiveXObject('Scripting.FileSystemObject'); |
| require 'csv' | |
| class ActiveRecord::Base | |
| class << self | |
| def dump_all | |
| descendants.each(&:to_csv) | |
| nil | |
| end | |
| def to_csv(filename=csv_export_filename) |