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 requests | |
import urllib.parse | |
import json | |
from datetime import datetime | |
# Load configuration | |
with open('config.json', 'r') as f: | |
config = json.load(f) | |
# Confluence API endpoint URLs |
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
class MainActivity : AppCompatActivity() { | |
override fun onCreate(savedInstanceState: Bundle?) { | |
super.onCreate(savedInstanceState) | |
setContent { | |
MaterialTheme { | |
Column { | |
ItemCell(item = Item("cat 1", "https://thumbs-prod.si-cdn.com/s-rtW1rEAQTIGcmUVNFSSPC4s3I=/800x600/filters:no_upscale()/https://public-media.si-cdn.com/filer/56/4a/564a542d-5c37-4be7-8892-98201ab13180/cat-2083492_1280.jpg")) | |
ItemCell(item = Item("cat 2", "https://images.pexels.com/photos/104827/cat-pet-animal-domestic-104827.jpeg?auto=compress&cs=tinysrgb&h=750&w=1260")) | |
} |
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
package net.mootoh.tabexperiment; | |
import android.os.Bundle; | |
import android.support.annotation.Nullable; | |
import android.support.v4.app.Fragment; | |
import android.support.v4.app.FragmentManager; | |
import android.view.LayoutInflater; | |
import android.view.View; | |
import android.view.ViewGroup; |
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
redmine-mysql: | |
restart: always | |
image: sameersbn/mysql:latest | |
environment: | |
- DB_USER=redmine | |
- DB_PASS=password | |
- DB_NAME=redmine_production | |
volumes: | |
- /tmp/docker/redmine/mysql:/var/lib/mysql |
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
From cafa54547e4043b6bab3e9becba0fb1215cdd9db Mon Sep 17 00:00:00 2001 | |
From: Motohiro Takayama <[email protected]> | |
Date: Tue, 15 Mar 2016 15:24:11 -0700 | |
Subject: [PATCH] Shift+E to edit in Page | |
--- | |
lib/views/page.html | 6 ++++++ | |
1 file changed, 6 insertions(+) | |
diff --git a/lib/views/page.html b/lib/views/page.html |
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
// https://twitter.com/kumiromilk/status/707437861881180160 | |
public class Zundoko { | |
private static final String TAG = "KIYOSHI"; | |
private static final String ZUN = "ズン"; | |
private static final String DOKO = "ドコ"; | |
public static void zundoko() { | |
Observable o = Observable.create(new Observable.OnSubscribe<String>() { | |
Random rand = new Random(); |
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
public class ApplicationTest extends ApplicationTestCase<Application> { | |
private static final String TAG = "Test"; | |
public ApplicationTest() { | |
super(Application.class); | |
} | |
public void testRxSample() throws InterruptedException { | |
final CountDownLatch signal = new CountDownLatch(1); | |
final String[] last = new String[1]; |
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
package com.example.mootoh.camera1sample; | |
import android.app.Activity; | |
import android.graphics.Bitmap; | |
import android.graphics.BitmapFactory; | |
import android.graphics.Matrix; | |
import android.hardware.Camera; | |
import android.os.Bundle; | |
import android.util.Log; | |
import android.view.Surface; |
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
'use strict'; | |
let fs = require('fs') | |
, request = require('request') | |
; | |
let config = JSON.parse(fs.readFileSync('./config.json')); | |
let access_token = config.access_token; | |
let folder = config.folder; |
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
'use strict'; | |
let fs = require('fs') | |
, request = require('request') | |
; | |
let config = JSON.parse(fs.readFileSync('./config.json')); | |
console.log(config.access_token); | |
request.post({ |
NewerOlder