This file contains hidden or 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 sys | |
| import tkinter | |
| import wiringpi | |
| LED_GPIO = 26 | |
| PWM_MAX = 100 | |
| class Led: | |
| def __init__(self): | |
| self.isEnabled = False |
This file contains hidden or 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
| using System; | |
| using System.Collections.Generic; | |
| using System.IO; | |
| using System.Linq; | |
| using System.Net; | |
| using System.Threading.Tasks; | |
| using CoreTweet; | |
| using Newtonsoft.Json; | |
| namespace TwiGrab |
This file contains hidden or 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
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| namespace Contest | |
| { | |
| internal class Problem | |
| { | |
| public static void Main() | |
| { |
This file contains hidden or 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
| #!/usr/bin/env python3 | |
| #-*- coding: utf-8 -*- | |
| from sys import exit | |
| from tkinter import * | |
| class Janken: | |
| HANDS = ["g", "c", "p"] | |
| STRINGS = ["グー", "チョキ", "パー"] | |
| QUIT = ["q", "終了"] |
This file contains hidden or 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
| /* | |
| * | |
| * The MIT License (MIT) | |
| * | |
| * Copyright (C) 2018 Siketyan | |
| * | |
| * Permission is hereby granted, free of charge, to any person obtaining a copy | |
| * of this software and associated documentation files (the "Software"), to deal | |
| * in the Software without restriction, including without limitation the rights | |
| * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
This file contains hidden or 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
| # Suppress: EC112 | |
| root = true | |
| ################################ | |
| ## File Formats and Indents | |
| ################################ | |
| [*] | |
| charset = utf-8 |
This file contains hidden or 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
| using System; | |
| using System.Linq; | |
| using System.Net.WebSockets; | |
| using System.Text; | |
| using System.Threading; | |
| namespace WebSocketClient | |
| { | |
| public class WebSocketClient : IDisposable | |
| { |
This file contains hidden or 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
| <?php | |
| $keyword = "キーワード"; | |
| $json = file_get_contents("https://ja.wikipedia.org/w/api.php?action=query&format=json&prop=extracts&redirects=1&explaintext=1&titles=".urlencode($keyword)); | |
| $wiki = json_decode($json, true); | |
| $page = current(array_slice($wiki['query']['pages'], 0, 1, true)); | |
| $title = $page['title']; | |
| $body = rtrim(strstr($page['extract'], "==", true), "\n"); | |
| // 例 |
NewerOlder