Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 os | |
heics = list(filter(lambda f : f.endswith(".heic") or f.endswith(".HEIC"), os.listdir("."))) | |
l = len(heics) | |
for i in range(l): | |
heic = heics[i] | |
print(heic + " (" + str(i+1) + "/" + str(l) + ")") | |
os.system("magick convert " + heic + " " + "".join(heic.split(".")[0:-1]) + ".jpg") | |
os.remove(heic) |
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
ARG UBUNTU_VERSION=latest | |
FROM ubuntu:${UBUNTU_VERSION} | |
ENV DEBIAN_FRONTEND noninteractive | |
RUN apt update \ | |
&& apt install -y openssh-server ssh sudo git vim \ | |
&& useradd -rm -d /home/ubuntu -s /bin/bash -g root -G sudo -u 1000 ubuntu \ | |
&& echo "ubuntu:ubuntu" | chpasswd \ |
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
#include <iostream> | |
#include <list> | |
using namespace std; | |
string convert(int n, int m) { | |
list<int> num; | |
while (n > 0) { | |
num.push_front(n % m); | |
n /= m; |
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
<templateSet group="AndroidKotlin"> | |
<template name="logd" value="logd("$METHOD_NAME$: $content$")" description="Log.d(String)" toReformat="true" toShortenFQNames="true"> | |
<variable name="METHOD_NAME" expression="kotlinFunctionName()" defaultValue="" alwaysStopAt="true" /> | |
<variable name="content" expression="" defaultValue="" alwaysStopAt="true" /> | |
<context> | |
<option name="KOTLIN_STATEMENT" value="true" /> | |
</context> | |
</template> | |
<template name="todo" value="//TODO $todo$" description="" toReformat="false" toShortenFQNames="true"> | |
<variable name="todo" expression="" defaultValue="" alwaysStopAt="true" /> |