Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env python
# -*- coding: utf-8 -*-
import datetime
import requests
URL = 'http://b.hatena.ne.jp/{user}/atomfeed?date={date}'
def years_ago(years):
if isinstance(years, str) or isinstance(years, unicode):
#!/bin/bash
for voice in Mizuki Joanna
do
mkdir -p ${voice}
echo ${voice}
for f in sample*.xml
do
fn=${f%%.*}
echo $fn
function (user, context, callback) {
if (context.clientID === 'AUTH0_CLIENT_ID') {
// set AWS settings
context.addonConfiguration = context.addonConfiguration || {};
context.addonConfiguration.aws = context.addonConfiguration.aws || {};
context.addonConfiguration.aws.principal = 'arn:aws:iam::123456789012:saml-provider/auth0-test';
context.addonConfiguration.aws.role = 'arn:aws:iam::123456789012:role/cm-js-sample-role@auth0';
}
callback(null, user, context);
public with sharing class DynamicActionController {
public class MyClass {
public Decimal value {get; set;}
public Boolean checked {get;set;}
public MyClass(Decimal value) {
this.checked = false;
this.value = value;
}
}
import json
def callback(event, context):
body = {
"message": "Go Serverless v1.0! Your function executed successfully!",
"input": event
}
response = {
"statusCode": 200,
@ueki-kazuki
ueki-kazuki / profiles.json
Created February 24, 2020 00:41
Windows Terminal configuration file
// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"defaultProfile": "{2c4de342-38b7-51cf-b940-2309a097f518}",
"copyOnSelect": true,
"requestedTheme": "system",
"profiles":
{
"defaults":