View config.example.py
1 2 3 4 5 6 7 8 9 10
#!/usr/bin/env python
# -*- coding: utf-8 -*-
 
config = {
"consumer": {
"key": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
"secret": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
},
"token": {
"key": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
View switchprof.py
1 2 3 4 5 6 7 8 9 10
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
 
from twitter import *
 
from config import *
 
 
def main(arg: str):
View gist:59074dc3f2e445a3f2bc
1 2 3 4 5 6 7 8 9 10
using (var reader = new CancellableStreamReader(stream))
{
while (true)
{
cancellationToken.ThrowIfCancellationRequested();
 
// create timeout cancellation token source
using (var timeoutTokenSource = new CancellationTokenSource(readTimeout))
using (var compositeTokenSource = CancellationTokenSource.CreateLinkedTokenSource(
cancellationToken, timeoutTokenSource.Token))
View App.xaml.cs
1 2 3 4 5 6 7 8 9 10
using System;
using System.Threading.Tasks;
using TestApp.Common;
using Skylight.Common;
using Windows.ApplicationModel;
using Windows.ApplicationModel.Activation;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Media.Animation;
using Windows.UI.Xaml.Navigation;
View MainPage.xaml
1 2 3 4 5 6 7 8 9 10
<Page x:Class="TestApp.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:actions="using:Skylight.Messaging.Behaviors.Actions"
xmlns:behaviors="using:Skylight.Messaging.Behaviors"
xmlns:comb="using:Skylight.Common.Behaviors"
xmlns:core="using:Microsoft.Xaml.Interactions.Core"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:i="using:Microsoft.Xaml.Interactivity"
xmlns:local="using:TestApp"
View MainPageViewModel.cs
1 2 3 4 5 6 7 8 9 10
using TestApp.Views;
using Skylight;
using Skylight.Common;
using Skylight.Messaging;
using Windows.ApplicationModel.Activation;
using Windows.Storage.Pickers;
using Windows.UI.Popups;
 
namespace TestApp.ViewModels
{
View station.json
1 2 3 4 5 6 7 8 9 10
{
"lines": {
"HA": {
"name": "A線",
"company": "harutrak",
"author": "fubukiefsf",
"color": "#000000",
"stations": {
"HH": {
"share": ["HBHH"],
View FragileCart.java
1 2 3 4 5 6 7 8 9 10
package com.troidworks.fragilecart;
 
import org.bukkit.Material;
import org.bukkit.entity.*;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.player.PlayerLoginEvent;
import org.bukkit.event.player.PlayerQuitEvent;
import org.bukkit.event.vehicle.VehicleExitEvent;
import org.bukkit.inventory.ItemStack;
View Surveyor.java
1 2 3 4 5 6 7 8 9 10
package com.troidworks.bukkit.surveyor;
 
import org.bukkit.*;
import org.bukkit.block.Block;
import org.bukkit.block.BlockFace;
import org.bukkit.command.Command;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import org.bukkit.metadata.FixedMetadataValue;
import org.bukkit.metadata.MetadataValue;
View haru_station_info.py
1 2 3 4 5 6 7 8 9 10
# "路線コード": {
# "駅コード": (X, Y, Z, "駅名"), ...
# }, ...
 
stationInfoTable = {
# harutrak A
"HA": {
# 駅共有/相互直通: HBHH
"HH": (-285, 59, 346, "役場前"),
"NV": (-369, 70, 115, "中村"), # 298 blocks
Something went wrong with that request. Please try again.