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 | |
rm -r source | |
mkdir -p ./source | |
for i in `find -type d -maxdepth 1 -mindepth 1`; do | |
DIRNAME="${i:2}" | |
DIRNAME="${DIRNAME%/}" | |
SITE=$(cat ./${DIRNAME}/package.mk | grep PKG_SITE= | cut -d'"' -f2) | |
[[ -z "${SITE}" ]] && continue |
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 | |
RA_CFG=/storage/.config/retroarch/retroarch.cfg | |
set_midi_source() | |
{ | |
local midi_source=$1 | |
pkill -9 timidity | |
pkill -9 mt32d |
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
#!/usr/bin/python -u | |
################################################################################ | |
# SPDX-License-Identifier: GPL-2.0-or-later | |
# Copyright (C) 2023-present ebeem (https://github.com/ebeem) | |
# Modifications made by: | |
# Langerz82 (https://github.com/Langerz82) | |
# wang80919 (https://github.com/wang80919) | |
# Testing done by: | |
# junm6802030 (https://github.com/junm6802030) |
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
#!/usr/bin/env python | |
import signal | |
from bluetool.agent import Client, AgentSvr | |
class MyClient(Client): | |
def request_pin_code(self, dev_info): | |
print(dev_info) |
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
#!/usr/bin/python -u | |
################################################################################ | |
# SPDX-License-Identifier: GPL-2.0-or-later | |
# Copyright (C) 2023-present ebeem (https://github.com/ebeem) | |
# Modifications made by: | |
# Langerz82 (https://github.com/Langerz82) | |
# wang80919 (https://github.com/wang80919) | |
# Testing done by: | |
# junm6802030 (https://github.com/junm6802030) |
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
#!/usr/bin/env python | |
import time | |
from bluetool import Bluetooth | |
if __name__ == "__main__": | |
bt = Bluetooth() | |
print('Scanning for available devices for 60 seconds, please wait...') | |
bt.make_discoverable(); | |
bt.start_scanning(60) |
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
< <system> | |
<name>Python Scripts</name> | |
<fullname>Python Scripts</fullname> | |
<manufacturer></manufacturer> | |
<release></release> | |
<hardware></hardware> | |
<path>/emuelec/scripts</path> | |
<extension>.py .PY</extension> | |
<command>/usr/bin/python %ROM%</command> | |
<platform>python</platform> |
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
<system> | |
<name>SH Scripts</name> | |
<fullname>SH Scripts</fullname> | |
<manufacturer></manufacturer> | |
<release></release> | |
<hardware></hardware> | |
<path>/emuelec/scripts</path> | |
<extension>.sh .SH</extension> | |
<command>%ROM%</command> | |
<platform>scripts</platform> |
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
#!/usr/bin/python -u | |
################################################################################ | |
# SPDX-License-Identifier: GPL-2.0-or-later | |
# Copyright (C) 2023-present ebeem (https://github.com/ebeem) | |
# Modifications made by: | |
# Langerz82 (https://github.com/Langerz82) | |
# wang80919 (https://github.com/wang80919) | |
# Testing done by: | |
# junm6802030 (https://github.com/junm6802030) |
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
var applyTextStroke = function (className, color, width) | |
{ | |
var r = width; | |
var n = Math.ceil(2*Math.PI*r); /* number of shadows */ | |
var str = ''; | |
for(var i = 0;i<n;i++) /* append shadows in n evenly distributed directions */ | |
{ | |
var theta = 2*Math.PI*i/n; | |
str += (r*Math.cos(theta))+"px "+(r*Math.sin(theta))+"px 0 "+color+(i==n-1?"":","); | |
} |
NewerOlder