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 pytube | |
link = input('Enter Youtube Video URL ') | |
yt = pytube.YouTube(link) | |
yt.streams.filter(progressive=True, file_extension='mp4').order_by('resolution').desc().first().download() | |
print('downloaded', link) |
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
lista = [1, 2, 3] | |
listb = ['a', 'b', 'c'] | |
for idx, (la, lb) in enumerate(zip(lista, listb)): | |
print(idx, la, lb) |
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
# coding: UTF-8 | |
class Test(): | |
def __init__(self, name): | |
self.name = name | |
def set_id(self, x): | |
self.id = x | |
def who_are_you(self): |
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
# coding: UTF-8 | |
import subprocess | |
import re | |
def extract_essid(line): | |
# ESSID:"essid" のパターンがあるかどうか | |
pattern = r'.*ESSID:"(.*)"' | |
result = re.match(pattern, line) | |
if result: | |
return (True, result.group(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
# include <Siv3D.hpp> | |
void PaintCircle(int cx, int cy, int r, Color c) { | |
int x, y; | |
x = r; | |
y = 0; | |
while (x >= y) { | |
Line(cx + x, cy + y, cx + x, cy - y).draw(1, c); |
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
// | |
// The Zen Programming Language(tm) | |
// Copyright (c) 2018-2020 kristopher tate & connectFree Corporation. | |
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * | |
// | |
// This project may be licensed under the terms of the ConnectFree Reference | |
// Source License (CF-RSL). Corporate and Academic licensing terms are also | |
// available. Please contact <[email protected]> for details. | |
// | |
// Zen, the Zen three-circles logo and The Zen Programming Language are |
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
using System; | |
using System.IO; | |
using UnityEngine; | |
using UnityEditor; | |
using UnityEditor.Callbacks; | |
using UnityEditor.iOS.Xcode; | |
// Unity 2019.3 でGetUnityTargetNameがdeprecatedになってるので。 | |
public class MyBuildPostprocessor { | |
[PostProcessBuild] |
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
set -gx PYENV_ROOT "$HOME/.pyenv" | |
status --is-interactive; and . (pyenv init - | psub) |
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
/* | |
Edison上で | |
% gcc -lmraa -o mraacheck mraacheck.c | |
% ./mraacheck | |
hello mraa | |
Version: v0.9.0 | |
Running on: Intel Edison | |
などと表示されればok. | |
*/ | |
#include "mraa.h" |
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
#!/bin/bash | |
IPA="/path/to/original.ipa" | |
NEWIPA="new_filename.ipa" | |
PROVISION="/path/to/new.mobileprovision" | |
CERTIFICATE="Name of certificate: To sign with" | |
unzip -q "$IPA" | |
rm -rf Payload/*.app/_CodeSignature | |
cp "$PROVISION" Payload/*.app/embedded.mobileprovision | |
codesign -f -s "$CERTIFICATE" Payload/*.app | |
zip -qr "$NEWIPA" Payload |
NewerOlder