Skip to content

Instantly share code, notes, and snippets.

View EncodeTheCode's full-sized avatar
💭
Coding useful tools for workflow.

EncodeTheCode

💭
Coding useful tools for workflow.
View GitHub Profile
<?php
echo <<< p
<!DOCTYPE html>
<html>
<head>
<title>Page title</title>
<style>
html,body{background-color:rgb(22,22,22);color:rgba(222,222,222,0.9);}
<style>
class globall():
# print(globals.a,globals.b,globals,c) ; 1,2,3
s='description'
t='content.txt'
def string_search(t,s): # Searches the first occurence of the search term.
if s is None:s=globall.s
if t is None:t=globall.t
s=s or globall.s
t=t or globall.t
import csv
with open("content.txt",encoding="utf8") as f:r=f.readlines();f.close();
class globall():
s='description'
t='content.txt'
def string_perform(t,s): # Locate string value on line number for perform action
if s is None:s=globall.s
if t is None:t=globall.t
SK 1 1000
Astralis 2 606
Gambit 3 525
FaZe 4 441
G2 5 410
Cloud9 6 397
Immortals 7 390
Virtus.pro 8 313
North 9 275
fnatic 10 259
Navigating GitHubGist CSV.
The search field is buggy.
If you press spacebar after a few searches in a CSV file, you get all contents in the CSV again.
It usually is stuck when doing a search, so pressing space causing a whitespace in the search field triggers a full view of the CSV file.
SK 1 1000
Astralis 2 600
Gambit 3 472
FaZe 4 432
G2 5 414
Cloud9 6 412
Immortals 7 397
Virtus.pro 8 315
North 9 295
fnatic 10 257
import csv
with open("content.txt",encoding="utf8") as f:r=f.readlines();f.close();
class globall():
s='description'
t='content.txt'
def string_perform(t,s): # Locate string value on line number for perform action
if s is None:s=globall.s
if t is None:t=globall.t
UncleNox VoHiYo WutFace copyThis YouWHY FrankerZ TheIlluminati pastaThat TheThing 4Head
U v w c M F T p T 4
n o u o o r h z h h
c J t p o z I s e e
l i f y W n l t T z
function initArray(m)
local a={}
for i=1,m do
a[i]=0
end
return a
end
players=initArray(32)
players_shielded=initArray(32)
function initArray(m)
local a={}
for i=1,m do
a[i]=0
end
return a
end
players=initArray(32)
players_shielded=initArray(32)