This file contains 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
#!/bin/bash | |
CURRENT=$(df / | grep / | awk '{ print $5}' | sed 's/%//g') | |
EMAILS='[{"to":[{"email":"info@example.com","name":"info"}]' | |
NAME='ExampleServer' | |
FROM='info@example.com' | |
TOKEN='YOUR-SENDGRID-TOKEN-HERE' |
This file contains 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
CF | |
CH | |
GL | |
HR | |
LD | |
LL | |
NP | |
SA | |
SY |
This file contains 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
# INNER LONDON | |
E1 | |
E2 | |
E3 | |
E4 | |
E5 | |
E6 | |
E7 | |
E8 | |
E9 |
This file contains 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
AL | |
B | |
BA | |
BB | |
BD | |
BF | |
BH | |
BL | |
BN | |
BR |
This file contains 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
import sib_api_v3_sdk | |
htmlData = '<b>Testing 123</b>' | |
configuration = sib_api_v3_sdk.Configuration() | |
configuration.api_key['api-key'] = 'YOUR_API_KEY' | |
api_instance = sib_api_v3_sdk.SMTPApi(sib_api_v3_sdk.ApiClient(configuration)) | |
send = sib_api_v3_sdk.SendSmtpEmailSender(email = 'hello@sender-email.com') |
This file contains 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 myPlot = document.getElementById('plotly-div'); | |
var isUnderRelayout = false; | |
myPlot.on('plotly_relayout',function(relayoutData){ | |
if(isUnderRelayout != true) | |
{ | |
isUnderRelayout = true; | |
// get the start and end dates of current 'view' |
This file contains 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
NSAlert inputAlert = new NSAlert() { MessageText = "Enter your license below", AlertStyle = NSAlertStyle.Critical }; | |
inputAlert.AddButton("Enter"); | |
inputAlert.AddButton("Cancel"); | |
NSTextField txt = new NSTextField(new CoreGraphics.CGRect(0, 0, 200, 24)); | |
txt.StringValue = "AAAA-BBBB-CCCC"; | |
inputAlert.AccessoryView = txt; | |
var result = inputAlert.RunModal(); |
This file contains 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
/* | |
This script provides a quick and dirty way of getting your most recent game achievement json data. | |
This is a lightly modified version of Jabbslad's script found here: https://gist.github.com/1653745 | |
James Coverdale - imjam.es 2012 | |
*/ | |
var fs = require('fs'), |