Skip to content

Instantly share code, notes, and snippets.

@xDeda
xDeda / lettercoordinates.py
Created December 31, 2016 17:57
how to write letters via coordinates
A = [3,22] , [10,0] , [18,22] , [15,14] , [4,14]
B = [3,1] , [11,1] , [16,5] , [12,10] , [3,11] , [12,10] , [17,16] , [10,22] , [3, 22] , [3,1]
C = [17,4] , [10,0] , [4,4] , [1,12] , [4,19] , [10,22] , [17,18]
D = [3,0] , [11,1] , [15,4] , [17,11] , [16,18] , [13,21] , [6,23] , [3,23] , [3,0]
E = [3,0] , [16,0] , [3,0] , [3,10] , [14,10] , [3,10] , [3,22] , [16,22]
F = [3,0] , [15,0] , [3,0] , [3,10] , [14,10] , [3,10] , [3,22]
G = [16,3] , [9,0] , [3,3] , [1,10] , [4,20] , [10,22] , [16,20] , [16,11] , [10,11]
H = [3,0] , [3,22] , [3,10] , [15,10] , [15,0] , [15,22]
I = [3,0] , [15,0] , [9,0] , [9,22] , [3,22] , [15,22]
J = [4,0] , [15,0] , [15,18] , [12,21] , [8,23] , [5,22] , [3,19]
p = peripheral.wrap("right")
i = 0
while true do
info = p.getPlayers()
if #info > 0 then
redstone.setBundledOutput("left", color.white)
@xDeda
xDeda / ysearch.py
Created September 24, 2016 20:47
python script to fetch first youtube result from search with arg string
#!/usr/bin/env python
import urllib
import urllib.request
import clipboard
import sys
import gi
gi.require_version('Notify', '0.7')
from gi.repository import Notify
from urllib.parse import quote
@xDeda
xDeda / love.lua
Created January 4, 2016 01:52
Adoration
tfm.exec.newGame(6445588)
tfm.exec.setNameColor("Imaginist",0xFFFFFF)
tfm.exec.setNameColor("Dedax",0xFFFFFF)
tfm.exec.setUIMapName("I Love You")
tfm.exec.setGameTime(8000,true)
function eventLoop(timeRemaining,timeRemaining)
imax = tfm.get.room.playerList.Imaginist.x
imay = tfm.get.room.playerList.Imaginist.y