Skip to content

Instantly share code, notes, and snippets.

View Sentiment
# Converting the text and sentiment lable into tuples for both train and test dataset
train['tuples'] = train.apply(lambda row: (row['Text'],row['Sentiment']), axis=1)
train = train['tuples'].tolist()
test['tuples'] = test.apply(lambda row: (row['Text'],row['Sentiment']), axis=1)
test = test['tuples'].tolist()
@CodeOpts
CodeOpts / thales_glossary.pm
Created Aug 17, 2021
short glossary for thales api perl module
View thales_glossary.pm
#?# create :before && close :after set default configuration
ref \20 #*# Code generator version
ref \1 #*# License model: long code
ref \LSWDEMO #*# Feature name
ref \1 #*# Feature version
ref \0 #*# Non-capacity
ref \N #*# Non-trial license (normal license)
ref \1 #*# Standalone license
ref \2 #*# Aggregate license
ref \PrivateInfo #*# Private software vendor information
View Potential Maintainers
Maintainers:
nixinator: fioctl, fioctl, fioctl, fioctl
kalbasit: fioctl, fioctl, fioctl, fioctl
matthewcroughan: fioctl, fioctl, fioctl, fioctl
View Changed Paths
i686-linux fioctl
aarch64-linux fioctl
x86_64-darwin fioctl
x86_64-linux fioctl
@PixelGuy19
PixelGuy19 / GetActivities.cs
Last active Aug 17, 2021
Vk .net get user Activities
View GetActivities.cs
static void Main(string[] args)
{
Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);
User User = UsersCollector.GetUser(1);
string Activiryes = User.Activities;
Console.WriteLine(Activiryes); //Activiryes = null
}
public static VkApi GetVkApi()
{
View matomo-slowlog.txt
[09-Aug-2021 16:40:28] [pool www] pid 27575
script_filename = /var/www/matomo/index.php
[0x00007f587c8205e0] execute() /var/www/matomo/libs/Zend/Db/Statement/Pdo.php:233
[0x00007f587c820520] _execute() /var/www/matomo/libs/Zend/Db/Statement.php:320
[0x00007f587c820470] execute() /var/www/matomo/core/Db/Adapter/Pdo/Mysql.php:305
[0x00007f587c8203d0] query() /var/www/matomo/libs/Zend/Db/Adapter/Abstract.php:736
[0x00007f587c820320] fetchAll() /var/www/matomo/core/Db.php:301
[0x00007f587c820290] fetchAll() /var/www/matomo/core/DataAccess/Model.php:467
[0x00007f587c820110] getArchiveIdAndVisits() /var/www/matomo/core/DataAccess/ArchiveSelector.php:85
[0x00007f587c81ff20] getArchiveIdAndVisits() /var/www/matomo/core/ArchiveProcessor/Loader.php:267
View choropleth_2.py
fig=px.choropleth(df, locations='Country', locationmode = 'country names', color='Deaths'
, animation_frame='Date' )
View tailwind.config.js
const colors = require('tailwindcss/colors')
module.exports = {
purge: ["./index.html", "./src/**/*.{vue,js,ts,jsx,tsx}"],
darkMode: false, // or 'media' or 'class'
theme: {
colors: {
gray: colors.coolGray,
blue: colors.lightBlue,
red: colors.rose,
pink: colors.fuchsia,
@RickyCook
RickyCook / rules.txt
Created Aug 17, 2021
uMatrix rulesets
View rules.txt
Shopify as 3rd-party
* shopifysvc.com
_ shopify.com frame
_ shopify.com script
_ shopifysvc.com other
View Sentiment
# Loading the pre-trained transformer model into the pipeline
nlp=spacy.load("en_core_web_trf")
# Checking the pipeline coponent
nlp.pipe_names