Instantly share code, notes, and snippets.

View api_18216_636689707596380198.cs
class ArticlePhygitalBase
{
decimal? AvisNote { get; set; }
bool EstEnPromo { get; set; }
decimal? PctRemise { get; set; }
Guid[] AllTags { get; set; }
string IntermediateImage { get; set; }
string Marque { get; set; }
decimal? SegmentationPrincipalePk { get; set; }
string MainImage { get; set; }
View index.js
const express = require('express');
const useragent = require('useragent');
const browserInfo = require('browser-info');
const geoip = require('geoip-lite');
const app = express();
const port = process.env.PORT || 3000;
app.get('/', (req, res) => {
const defaultAgent = req.headers['user-agent'];
View api_18216_636689707596380198.cs
class ArticlePhygitalBase
{
decimal? AvisNote { get; set; }
bool EstEnPromo { get; set; }
decimal? PctRemise { get; set; }
Guid[] AllTags { get; set; }
string UrlExterne { get; set; }
string IntermediateImage { get; set; }
string Marque { get; set; }
decimal? SegmentationPrincipalePk { get; set; }
View api_18216_636689707583237572.cs
class ArticlePhygitalDetail
{
ArticleReference[] AutresReferences { get; set; }
EmplacementMagasin EmplacementStockMagasin { get; set; }
ArticlePhygitalDimensions Dimensions { get; set; }
ArticlePhygitalTaxe[] Taxes { get; set; }
ArticlePhygitalBase Parent { get; set; }
ArticleDispoDigiSign[] Disponibilites { get; set; }
ArticlePhygitalVersion[] Instances { get; set; }
String[] Documents { get; set; }
View flightaware.sh
#!/bin/bash -e
sudo apt-get update
sudo apt-get -y install dirmngr
# Add the package for FlightAware
wget http://flightaware.com/adsb/piaware/files/packages/pool/piaware/p/piaware-support/piaware-repository_3.6.3_all.deb
sudo dpkg -i piaware-repository_3.6.3_all.deb
# Add the server for FlightRadar24
View Death Grips Anger Percent Angry.R
song_data %>%
unnest() %>%
unnest_tokens(word, lyric) %>%
anti_join(stop_words, by = "word") %>%
left_join(angry_words, by = "word") %>%
group_by(track_name, energy, album_name, duration_ms, valence) %>%
summarize(percent_angry = sum(anger, na.rm = TRUE) / n(), word_count = n()) %>%
ungroup() %>%
select(track_name, album_name, percent_angry) %>%
arrange(desc(percent_angry))
View gist:0a65ebfa4c8c79678f143a6efc8b6d89
**LOG_DETAIL** retrieved from /usr/local/lsws/phpbuild/buildphp_1547140176.3.log
==============================================
Start building PHP 7.2.12 with LSAPI
==============================================
Thu Jan 10 18:11:23 CET 2019
Changing to build directory /usr/local/lsws/phpbuild/php-7.2.12
Configuring PHP build (2-3 minutes)
View sentiment.rb
#text_content = "string"
require "google/cloud/language"
language = Google::Cloud::Language.new
response = language.analyze_sentiment content: text_content, type: :PLAIN_TEXT
sentiment = response.document_sentiment
View openpanzer-save.json
{"scenario":{"name":"Crossing the Schelde","maxTurns":23,"date":"1940-05-26T05:00:00.000Z","atmosferic":0,"latitude":2,"ground":0,"turnsPerDay":0,"dayTurn":0,"reinforcements":{},"map":{"rows":29,"cols":39,"map":[[{"unit":null,"airunit":null,"terrain":0,"road":0,"owner":-1,"flag":-1,"isDeployment":-1,"victorySide":-1,"name":"","isMoveSel":false,"isAttackSel":false},{"unit":null,"airunit":null,"terrain":0,"road":0,"owner":-1,"flag":-1,"isDeployment":-1,"victorySide":-1,"name":"","isMoveSel":false,"isAttackSel":false},{"unit":null,"airunit":null,"terrain":0,"road":0,"owner":-1,"flag":-1,"isDeployment":-1,"victorySide":-1,"name":"","isMoveSel":false,"isAttackSel":false},{"unit":{"eqid":39,"id":0,"owner":1,"hasMoved":false,"hasFired":false,"hasResupplied":false,"isMounted":false,"isSurprised":false,"isDeployed":true,"isCore":false,"tempSpotted":false,"strength":10,"facing":14,"flag":7,"destroyed":false,"player":{"id":1,"side":1,"country":1,"prestige":936,"score":-1181,"dossier":{},"playedTurn":4,"type":2,"handler"
View Dendogram.py
from pathlib import Path
import numpy as np
import sklearn as sk
import pandas as pd
#%% Configuration
INPUT_PATH = Path('')
#%% Import Dataset