Skip to content

Instantly share code, notes, and snippets.

View arran4's full-sized avatar

Arran Ubels arran4

View GitHub Profile
@arran4
arran4 / main.go
Last active February 13, 2019 06:43
Counts:
a...a : 189
a...b : 9
a...c : 104
a...d : 380
a...e : 498
a...f : 5
a...g : 303
a...h : 36
a...i : 26
{
"Name": "15WhatIf1000iterations",
"State": [
{
"ColorRule": [
{
"NewColor": 1,
"DirectionOffset": 1,
"NewState": null
},
[Data]
DataCount=1
[Data_1]
Comment=Comment
DataCount=3
Enabled=true
Name=shutter
SystemGroup=0
Type=ACTION_DATA_GROUP
@arran4
arran4 / main.go
Last active July 5, 2018 02:34
Simple speed test
package main
import (
"net/http"
"math/rand"
"time"
"log"
"io"
"bytes"
)
@arran4
arran4 / listAllSharedGoogleDocs.gs
Last active July 29, 2022 18:43 — forked from Diana-Pham/listAllFileDetails.gs
A script to list all your shared files in google drive and with whom it's shared (forked.)
// Run this function to start! You will get an email after a while. ATM it runs at a rate of 20 files every 5 minutes, then it should email you when done. This can be a long time later depending on how many files you have.
function createTimeDrivenTriggers() {
var scriptProperties = PropertiesService.getScriptProperties();
scriptProperties.setProperty("EMAIL", Session.getActiveUser().getEmail());
ScriptApp.newTrigger('listFilesInDrive') //run "listFilesInDrive()" every 5 minutes
.timeBased()
.everyMinutes(5) //Runs every 5 minutes
.create();
};
Sub rangeexport()
Dim wdApp As Word.Application
Dim doc As Word.Document
Set wdApp = CreateObject("Word.application")
'Set doc = wdApp.Documents.Add()
Dim element As Excel.name
<template>
<div class="hello">
<h1>\{{ msg }}</h1>
<h2>Essential Links</h2>
<ul>
<li><a href="https://vuejs.org" target="_blank">Core Docs</a></li>
<li><a href="https://forum.vuejs.org" target="_blank">Forum</a></li>
<li><a href="https://gitter.im/vuejs/vue" target="_blank">Gitter Chat</a></li>
<li><a href="https://twitter.com/vuejs" target="_blank">Twitter</a></li>
<br>
// http://www.reddit.com/user/DiRaven
// 11/01/2016
// Run this once to grant script access and add trigger automatically
function AddAddNewVideosToWatchLaterTrigger()
{
ScriptApp.newTrigger('AddNewVideosToWatchLater')
.timeBased()
.everyHours(24)
.create();
package main
import "fmt"
var relations = []string {"", "12", "21", }
var nodes = []string {"AB","BC","CA",}
func main() {
fmt.Printf("digraph causeeffect {\n")
i := 0
function SelectMovie(movies, avail, movieprefs) {
var dateData = new Array();
var lenPeople = avail[0].length;
if (lenPeople != movieprefs[0].length) {
return "Error; length mismatch 1";
}
if (movies.length != movieprefs.length) {
return "Error; length mismatch 2";
}
for(var ai = 0; ai < avail.length; ai++) {