Skip to content

Instantly share code, notes, and snippets.

@jcohen66
jcohen66 / python-virtual-environment.py
Created Jan 23, 2021
Python Virtual Environment #python #venv
View python-virtual-environment.py
# install in project directory
python3 -m venv ./venv
@hasansahinnn
hasansahinnn / Angular_DataTable_.Net Response Model
Created Jan 23, 2021
Angular_DataTable_.Net Response Model
View Angular_DataTable_.Net Response Model
public class DataTableResponse<T>
{
public List<T> Data { get; set; }
public int draw { get; set; }
public int recordsFiltered { get; set; }
public int recordsTotal { get; set; }
}
View setuplab.sh
#! /bin/bash
# https://gist.github.com/lukechilds/a83e1d7127b78fef38c2914c4ececc3c
get_latest_github_release_version() {
curl --silent "https://api.github.com/repos/$1/releases/latest" | # Get latest release from GitHub api
grep '"tag_name":' | # Get tag line
sed -E 's/.*"([^"]+)".*/\1/' # Pluck JSON value
}
echo "* Installing git"
@HugsLibRecordKeeper
HugsLibRecordKeeper / output_log.txt
Created Jan 23, 2021
Rimworld output log published using HugsLib
View output_log.txt
This file has been truncated, but you can view the full file.
Log uploaded on Saturday, January 23, 2021, 3:12:28 PM
Loaded mods:
Harmony(brrainz.harmony)[mv:1.0.4.0]: 0Harmony(2.0.2), HarmonyMod(1.0.4)
Core(Ludeon.RimWorld): (no assemblies)
Royalty(Ludeon.RimWorld.Royalty): (no assemblies)
Realistic Planets - Fan Update(SaucyPigeon.RealisticPlanets): Rainbeau's Realistic Planets(1.0.0)
Advanced Biomes (Continued)(Mlie.AdvancedBiomes)[mv:1.0.5.0]: ActiveTerrain(1.0.0), BiomesPlus(1.0.0), ModCheck(1.8.0 [no FileVersionInfo])
Goldminermac's Empire: Dastardly Machinations(Goldminermac.Empireexpandeddastardlymachinations): (no assemblies)
[KV] Faction Control(factioncontrol.kv.rw): 0Harmony(av:2.0.2,fv:1.2.0.1), FactionControl(1.0.7546.40571)
View information-architecture.csv
We can make this file beautiful and searchable if this error is corrected: It looks like row 2 should actually have 4 columns, instead of 2. in line 1.
Orders index Cancelled Orders, Dispatched Orders, Pending Orders Download Invoice, Duplicate Order
Single Order Order Details Download Invoice, Duplicate Order
Specials Specials Add Products to Cart
Suppliers index Supplier Info, Suppliers Index Bookmark Suppliers, Filter Suppliers, Sort Suppliers
Global search Search Products, Search Suppliers Search Products
Single Supplier page Supplier Info, Supplier’s Products Add Products to Cart, Browse Products, Filter Products, Search Products, Sort Products
Categories pages Search Products Add Products to Cart, Browse Products, Filter Products, Links to Pages, Search Products, Sort Products
Reports By Category, By Product, By Supplier Download CSV
Locations Locations Add Location, Edit Locations
Account settings Contact Details, Password Settings, Payment Settings Delete Account, Edit Settings
@hasansahinnn
hasansahinnn / Angular_DataTable_.Net Request Model
Created Jan 23, 2021
Angular_DataTable_.Net Request Model
View Angular_DataTable_.Net Request Model
public class Search
{
[JsonPropertyName("value")]
public string Value { get; set; }
[JsonPropertyName("regex")]
public bool Regex { get; set; }
}
public class Column
View openpanzer-save.json
{"scenario":{"name":"Kasserine Pass","maxTurns":15,"date":"1943-02-14T04:00:00.000Z","atmosferic":0,"latitude":2,"ground":0,"turnsPerDay":4,"dayTurn":2,"reinforcements":{},"map":{"rows":33,"cols":31,"isLastRowPartial":false,"isLastColPartial":false,"map":[[{"unit":null,"airunit":null,"terrain":9,"road":0,"owner":-1,"flag":-1,"isDeployment":-1,"victorySide":-1,"name":"","isMoveSel":false,"isAttackSel":false},{"unit":null,"airunit":null,"terrain":9,"road":0,"owner":-1,"flag":-1,"isDeployment":-1,"victorySide":-1,"name":"","isMoveSel":false,"isAttackSel":false},{"unit":null,"airunit":null,"terrain":9,"road":0,"owner":-1,"flag":-1,"isDeployment":-1,"victorySide":-1,"name":"","isMoveSel":false,"isAttackSel":false},{"unit":null,"airunit":null,"terrain":9,"road":0,"owner":-1,"flag":-1,"isDeployment":-1,"victorySide":-1,"name":"","isMoveSel":false,"isAttackSel":false},{"unit":null,"airunit":null,"terrain":9,"road":0,"owner":-1,"flag":-1,"isDeployment":-1,"victorySide":-1,"name":"","isMoveSel":false,"isAttackSel":fals
View Capstone Project.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View gist:cd010cb4bbd2a0664fa818bcb57d8012
git fetch google/common android-4.14-stable
git fmt-merge-msg --log=10000 <.git/FETCH_HEAD> ~/merge.log
git merge FETCH_HEAD -F ~/merge.log
@defender11
defender11 / README.md
Created Jan 23, 2021
Magic Swipe for touchpad in Elementary OS or Linux
View README.md

SOURCE: https://ask-ubuntu.ru/questions/500632/zhestyi-tachpada-v-ubuntu-1804-lts


Прежде всего, проверьте, является ли ваш текущий пользователь частью группы ввода. Вы можете сделать это,

sudo gpasswd -a $USER input

Затем выйдите и снова войдите в систему. Теперь установите xdotool и libinput-tools.