Skip to content

Instantly share code, notes, and snippets.

View kilonzi's full-sized avatar
🎯
Focusing

John Kitonyo kilonzi

🎯
Focusing
View GitHub Profile
# -*- coding: utf-8 -*-
"""How to authenticate with service account file
"""
# !pip install google-auth
# !pip install google-auth-httplib2
# !pip install google-cloud-storage
from google.oauth2 import service_account
from google.cloud import storage
@startuml
skinparam class {
BackgroundColor<<Namespace>> LightBlue
BackgroundColor<<Token>> LightCoral
BackgroundColor<<Workflow>> LightGoldenRodYellow
BackgroundColor<<Run>> LightSalmon
BackgroundColor<<Task>> LightSteelBlue
BackgroundColor<<Secret>> LightPink
}
version 1.0
workflow GenerateMD5 {
input {
File input_file
}
call ComputeMD5 {
input: file_to_hash = input_file
}
apiVersion: sanda.broad.io/v1
workflow:
name: updated_example_workflow_in_version_2
description: This is an example workflow
version: 0.1.1
environment:
- DATABASE_URL
- SECRET_KEY
- BASE_URL
jobs:
@kilonzi
kilonzi / sanda-v1.yml
Last active May 20, 2024 19:19
A complete workflow definition
apiVersion: sanda.broad.io/v1
workflow:
name: updated_example_workflow
description: This is an example workflow
version: 0.1.1
environment:
- DATABASE_URL
- SECRET_KEY
- BASE_URL
jobs:
@kilonzi
kilonzi / schema.gql
Last active May 20, 2020 05:48
A GraphQL schema autogenerate by https://www.skimaql.com
type User {
id: ID!
posts: [Post]
name: String
email: String!
password: String!
}
type Post {
id: ID!
user: User
@kilonzi
kilonzi / deploy.yml
Last active April 6, 2020 13:11
This is a sample workflow file to deploy a VueJS project to Firebase.
name: DEPLOY TO STAGING
on:
push:
branches:
- develop
jobs:
firebase-deploy:
runs-on: ubuntu-latest
@kilonzi
kilonzi / FacebookLogin.vue
Last active October 13, 2023 07:00
A Facebook Login button Single File Component done in VueJS
<template>
<div>
<button class="button" @click="logInWithFacebook"> Login with Facebook</button>
</div>
</template>
<script>
export default {
name:"facebookLogin",
methods: {
@kilonzi
kilonzi / stylelint.config.js
Created October 1, 2019 16:37
The lint settings configuration file
"use strict"
module.exports = {
"extends": "stylelint-config-recommended",
"rules": {
"at-rule-empty-line-before": ["always", {
except: [
"blockless-after-same-name-blockless",
"first-nested",
],