Do you find Arch Linux in Termux PRoot and Termux on device inspiring? These images were raytraced on a smartphone in Termux in Android, January 2018. They were created with Povray in Arch Linux Termux PRoot. This website is about Povray in Arch Linux in Termux PRoot and is being built around Package Request: Povray and Povray Termux Package Request. More information at https://sdrausty.github.io/TermuxPovray/docs. The files are amazing
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 android.animation.TypeEvaluator; | |
import android.graphics.Matrix; | |
public class MatrixEvaluator implements TypeEvaluator<Matrix> { | |
private Matrix evaluated = new Matrix(); | |
private float[] values = new float[9]; | |
private float[] startValues = new float[9]; | |
private float[] endValues = new float[9]; | |
@Override |
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
{% macro outputTiles(tileList) %} | |
{# use macro to keep it DRY #} | |
<div class="tiles"> | |
{% for tile in tileList %} | |
<div class="tile">{{ tile.tileTitle }}</div> | |
{% endfor %} | |
</div> | |
{% endmacro %} |
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
bundle exec ruby bot.rb | |
bot created | |
(JSON::ParserError)bies/ruby-2.3.0/lib/ruby/2.3.0/json/common.rb:156:in `parse': 784: unexpected token at '<html> | |
<head><title>302 Found</title></head> | |
<body bgcolor="white"> | |
<center><h1>302 Found</h1></center> | |
<hr><center>nginx/1.9.1</center> | |
</body> | |
</html> | |
' |
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
//http://www.glassdoor.com/Interview/Given-a-large-input-string-write-a-function-to-check-if-it-is-a-palindrome-according-to-the-following-restrictions-low-QTN_927605.htm | |
//Given a large input string, write a function to check if it is a palindrome, | |
//according to the following restrictions: -lowercase and uppercase characters are considered equal -special characters are ignored | |
var aCode = "a".charCodeAt(0); | |
var ACode = "A".charCodeAt(0); | |
var setLen = 26; | |
function isChar(char) { |
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
const TelegramBot = require('node-telegram-bot-api'); | |
// replace the value below with the Telegram token you receive from @BotFather | |
const token = YOUR_TOKEN; | |
// read the doc from https://github.com/yagop/node-telegram-bot-api to know how to catch the chatId | |
const chatId = CHAT_ID; | |
const bot = new TelegramBot(token, { polling: false }); | |
const telegrambot = (message, json) => { |
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.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using System.IO; | |
namespace AdventOfCode_Day10 | |
{ | |
class Program | |
{ |
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
const { prefix: PRE, token: TOKEN } = require('./config.json'); | |
const discord = require('discord.js'); | |
const mineflayer = require('mineflayer'); | |
const client = new discord.Client(); | |
let botList = new Map(); | |
let channel; |
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
# Contributor: judd <jvinet@zeroflux.org> | |
pkgname=alsa-lib | |
pkgver=1.1.7 | |
pkgrel=2 | |
pkgdesc="An alternative implementation of Linux sound support" | |
arch=('x86_64') | |
url="http://www.alsa-project.org" | |
depends=('glibc') | |
optdepends=('python2: for python smixer plugin') |
Termux Bash script for checking internet connection by periodically pinging some host and showing notifications with LED and vibration when connection is lost or established using termux-notification API
- Termux
- Termux:API add-on
- Execute the following commands to place script
termux-pinger.sh
into the home directory with the proper permissions (get the link to the raw termux-pinger.sh below):
curl -O https://gist.githubusercontent.com/gpchelkin/b18916c56ff7c759860725a28a747242/raw/b8aa96bb2c7e1dac84f854980eaeb6cd194dde4f/termux-pinger.sh
chmod +x termux-pinger.sh
OlderNewer