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
.PHONY = clean | |
CC = `xcrun -find clang++` | |
CFLAGS = -Wall -O3 -fembed-bitcode -isysroot `xcrun -sdk iphonesimulator --show-sdk-path` | |
# iOS13以降のみをサポート | |
CFLAGS += -mios-simulator-version-min=13.0 -mios-version-min=13.0 | |
SOURCES = $(wildcard *.cpp) | |
UNIVERSAL_OBJECTS = $(SOURCES:%.cpp=%.o) |
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 ubuntu:18.04 | |
MAINTAINER @tkgling | |
# Environment | |
ENV USER devkit | |
ENV SHELL /bin/bash | |
ENV HOME /home/${USER}/devkita64 | |
ENV DEVKITPRO=/opt/devkitpro | |
ENV PATH=${DEVKITPRO}/tools/bin:$PATH |
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
function Salmonia() { | |
const iksmSessions= JSON.parse(PropertiesService.getScriptProperties().getProperty('IKSM_SESSION')) | |
const apiToken = PropertiesService.getScriptProperties().getProperty('API_TOKEN') | |
let jobNum = JSON.parse(PropertiesService.getScriptProperties().getProperty('JOB_NUM')) | |
iksmSessions.forEach(function(iksm_session, index) { | |
const present = getJobNumFromSplatNet2(iksm_session) | |
const preview = Math.max(parseInt(jobNum[index]), present - 49) | |
Logger.log(iksm_session, present, preview) | |
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 zlib | |
with open("params-filter-nodup.txt", mode="r") as f: | |
with open("param.csv", mode="w") as w: | |
for line in f: | |
param = line.strip() | |
hash = format(zlib.crc32(param.encode("ascii")) & 0xFFFFFFFF, "x") | |
param = param.split(".") | |
w.write(f"{hash},{param[0]}\n") |
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
<?php | |
require "vendor/autoload.php"; | |
use Abraham\TwitterOAuth\TwitterOAuth; | |
session_start(); | |
$CONSUMER_KEY = ""; | |
$CONSUMER_KEY_SECRET = ""; |
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
[ | |
{ | |
"end_time": 1500696000, | |
"rare_weapon": 20000, | |
"stage_id": 5000, | |
"start_time": 1500616800, | |
"weapon_list": [ | |
10, | |
5010, | |
1010, |
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 glob import escape | |
from optparse import Option | |
from urllib import request | |
import requests | |
from bs4 import BeautifulSoup | |
import re | |
import time | |
import json | |
from selenium import webdriver | |
from selenium.webdriver.chrome.options import Options |
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
<?php | |
try { | |
$dbh = new PDO("mysql:host=localhost:3306;dbname=DBNAME;", "root", "PASSWORD"); | |
$sql = "SELECT * FROM DBNAME.TABLENAME WHERE name = :name"; | |
$stmt = $dbh->prepare($sql); | |
$lose_name = "tkgling"; | |
$stmt->bindParam(":name", $lose_name); | |
$stmt->execute(); | |
$result = $stmt->fetch(PDO::FETCH_ASSOC); | |
var_dump($result); |
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
private struct PullToRefresh: UIViewRepresentable { | |
@Binding var isShowing: Bool | |
public init( | |
isShowing: Binding<Bool> | |
) { | |
self._isShowing = isShowing | |
} | |
public class Coordinator { |
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 SwiftUI | |
struct Modal<Content>: UIViewControllerRepresentable where Content: View { | |
@Binding var isPresented: Bool | |
let content: () -> Content | |
let transitionStyle: ModalTransitionStyle | |
let presentationStyle: ModalPresentationStyle | |
let isModalInPresentation: Bool | |
let contentSize: CGSize? |
OlderNewer