Skip to content

Instantly share code, notes, and snippets.

View etdecode's full-sized avatar
🌆
building

Etienne Leroy 🛩️ etdecode

🌆
building
View GitHub Profile
import requests
from bs4 import BeautifulSoup as bs
url = "google doc with a 3 rows table containing (x, ascii char, y)"
def google_doc_table_finder(url):
response = requests.get(url)
html_content = response.text
soup = bs(html_content,'html.parser')
table = soup.find('table')
Get-ChildItem -Path C:\YOUR_ROOT_PATH\*.* -recurse
| ForEach {If (Get-Content $_.FullName | Select-String -Pattern '\\foo\\')
{(Get-Content $_ | ForEach {$_ -replace '\\foo\\', '\bar\'}) | Set-Content $_ }
}
@etdecode
etdecode / dollar_class.js
Last active October 13, 2017 05:42 — forked from milligramme/dollar_class.js
Dollar Class for ExtendScript
// Dollar Class
$.writeln("build: "+$.build);
$.writeln("buildDate: "+$.buildDate);
$.writeln("decimalPoint: "+$.decimalPoint);
$.writeln("engineName: "+$.engineName);
$.writeln("error: "+$.error);
$.writeln("fileName: "+$.fileName);
$.writeln("flags: "+$.flags);
$.writeln("global: "+$.global);
@etdecode
etdecode / exportxt.ESTK.js
Created September 4, 2017 18:04
export text to understand the structure of a document
#target Illustrator-21
#script export_text_simply
//GLOBAL
var textlist;
//INIT
textlist=null
//CODE
makelist();
exportlist(textlist);
@etdecode
etdecode / playlist1.bbc1music.txt
Last active December 19, 2018 10:20
playlist todo perso
====Electro
madeon{ imperium}
Jaded{ In The Morning}
Kelis{ Acapella}
Secondcity{ I wanna feel}
Disciples{On My Mind }
The xx {Dangerous}
DJ Fresh {Gold Dust (Shy FX Re-Edit) (feat. Ms. Dynamite)}
Mr. Probz{Waves (Robin Schulz Remix) }
Dynoro & Gigi D’Agostino{In My Mind}
@etdecode
etdecode / merge-twin-folder.estk.jsx
Created July 31, 2017 10:16
extendscript for Ai : merge an array twin files using copyfront - files must be very similar for best result - order matters
#target Illustrator-21
#targetengine main
var scriptID = "merge-2-folders v1.0";
var daoFolder = null
var impFolder = null
var sourceFolder = null
var fileType = null
var files1 = null
var files1 = null
var sourceDoc1 = null
@etdecode
etdecode / open-close-twin.estk.jsx
Created July 28, 2017 17:39
open [do something] then close 2 twin files folders
#target Illustrator-21
#targetengine main
var scriptID = "test-open-close v1.0";
var daoFolder = null
var impFolder = null
var sourceFolder = null
var fileType = null
var files1 = null
var files1 = null
var sourceDoc1 = null
@etdecode
etdecode / merge-twin.estk.jsx
Last active July 28, 2017 17:41
Open 2 files [twin] then merge them
#target Illustrator-21
#targetengine main
var scriptID = "merge v1.0";
var impFile, daoFile, newItem, doc, l, docImp, docDao;
//
var daoFile = "C:/TEMPai/F4/script/merge/dao1-10.pdf";
var impFile = "C:/TEMPai/F4/script/merge/imp1-10.pdf";
alert (impFile);
alert (daoFile);