<([a-z][a-z0-9]*)[^>]*?(/?)>
| token | explanation |
|---|---|
| < | match < at beginning of tags |
| ( | start capture group $1 - tag name |
| [a-z] | match a through z |
| import pandas as pd | |
| import csv | |
| df = pd.read_csv('data-parsed/parsed.csv') | |
| df = df.drop_duplicates(subset='id', keep='last') | |
| df.to_csv('data-parsed/parsed-cleaned.csv', index=False, quoting=csv.QUOTE_NONNUMERIC) |
Dear HeroConf London Attendants,
Thank for your listening to our talk "Automating Search Query Processing" at HeroConf London 2018. We hope you enjoyed the presentation. This github-gist page aims to bring all related resources, links and code into one documentation.
The slideshare deck can be found here: slideshare.com/norisk
For any further questions, please reach out to [email protected] or [email protected] (related to Sixt slides).
| # load packages & custom functions --------------------------------------------- | |
| today_date <- Sys.Date() | |
| from_date <- as.Date("2015-06-01") | |
| to_date <- as.Date("2020-05-31") | |
| library(tidyverse) | |
| library(httr) | |
| library(cranlogs) | |
| library(ggrepel) |
| :: Windows 10 Hardening Script | |
| :: This is based mostly on my own personal research and testing. My objective is to secure/harden Windows 10 as much as possible while not impacting usability at all. (Think being able to run on this computer's of family members so secure them but not increase the chances of them having to call you to troubleshoot something related to it later on). References for virtually all settings can be found at the bottom. Just before the references section, you will always find several security settings commented out as they could lead to compatibility issues in common consumer setups but they're worth considering. | |
| :: Obligatory 'views are my own'. :) | |
| :: Thank you @jaredhaight for the Win Firewall config recommendations! | |
| :: Thank you @ricardojba for the DLL Safe Order Search reg key! | |
| :: Thank you @jessicaknotts for the help on testing Exploit Guard configs and checking privacy settings! | |
| :: Best script I've found for Debloating Windows 10: https://github.com/Sycnex/Windows10Debloater | |
| : |
Beast Mode is a custom chat mode for VS Code agent that adds an opinionated workflow to the agent, including use of a todo list, extensive internet research capabilities, planning, tool usage instructions and more. Designed to be used with 4.1, although it will work with any model.
Below you will find the Beast Mode prompt in various versions - starting with the most recent - 3.1
| <?php | |
| /** | |
| * Sample script to convert an CSV (ie. exported form MS Excel file) into | |
| * RDF SKOSXL format. | |
| * | |
| * @file csv2skosxl.php | |
| * @license Licensed under WTFPL (http://www.wtfpl.net/txt/copying/) | |
| * @author Cristian Romanescu <[email protected]> | |
| */ |
| // Name: Summarize with AI Widget | |
| // Description: Get a summary of any topic using OpenAI and display in a widget. | |
| // Author: AI Script Generator | |
| import '@johnlindquist/kit' | |
| import { OpenAI } from 'openai' | |
| // Initialize OpenAI client with API key from environment variable | |
| const openai = new OpenAI({ | |
| apiKey: await env('OPENAI_API_KEY', { |
| //Import Google Product Taxonomy | |
| //WITH IDENTIFIERS | |
| //downloaded from https://support.google.com/merchants/answer/1705911 | |
| create index on :Cat1(name); | |
| create index on :Cat2(name); | |
| create index on :Cat3(name); | |
| create index on :Cat4(name); | |
| create index on :Cat5(name); | |
| create index on :Cat6(name); |