Skip to content

Instantly share code, notes, and snippets.

@siddhpant
siddhpant / shot.sh
Created Oct 1, 2020
SDDM lock screen screenshot
View shot.sh
TMPXAUTHORITY=$(ls /var/run/sddm/*)
sleep 15
DISPLAY=:0 XAUTHORITY=$TMPXAUTHORITY xwd -root > /home/siddh/Desktop/greeter.xwd
convert /home/siddh/Desktop/greeter.xwd /home/siddh/Desktop/login_screen.png
rm /home/siddh/Desktop/greeter.xwd
View main.dart
import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
@kataras
kataras / view-engine-benchmarks-system-info.md
Created Oct 1, 2020
view-engine-benchmarks-system-info
View view-engine-benchmarks-system-info.md
Processor Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz
RAM 15.85 GB
OS Microsoft Windows 10 Pro
Bombardier v1.2.4
Go go1.15.2
View UserRepository.cs
using Core3.JWT.Models;
using System.Collections.Generic;
using System.Linq;
namespace Core3.JWT.Repositories
{
public static class UserRepository
{
public static User Get(string username, string password)
{
@eduardosilva
eduardosilva / sqlserverstudiomanagmenttipsandtricks.md
Created Oct 1, 2020
SQL Server Studio ManagementTips and Tricks
View sqlserverstudiomanagmenttipsandtricks.md

SQL Server Studio ManagementTips and Tricks

@PandelisZ
PandelisZ / myfirstpr.graphql
Created Oct 1, 2020
Find your first ever PR :)
View myfirstpr.graphql
query {
viewer {
pullRequests(first: 10) {
edges {
node {
url
repository {
nameWithOwner
}
}
@HugsLibRecordKeeper
HugsLibRecordKeeper / output_log.txt
Created Oct 1, 2020
Rimworld output log published using HugsLib
View output_log.txt
Log uploaded on Thursday, October 1, 2020, 8:21:56 AM
Loaded mods:
Harmony(brrainz.harmony_copy)[mv:1.0.4.0]: 0Harmony(2.0.2), HarmonyMod(1.0.4)
Core(Ludeon.RimWorld): (no assemblies)
Royalty(Ludeon.RimWorld.Royalty): (no assemblies)
RimThemes(aRandomKiwi.RimThemes_copy): LibAPNG(0.2.6979.15011), RimThemes(2021.0.1.1)
Startup impact(automatic.startupimpact_copy): 0Harmony(2.0.2), StartupImpact(1.1.7530.16587)
HugsLib(UnlimitedHugs.HugsLib_copy)[ov:8.0.1]: 0Harmony(av:2.0.2,fv:1.2.0.1), HugsLib(av:1.0.0,fv:8.0.1)
JecsTools (Unofficial)(jecrell.jecstools)[mv:1.1.2.1]: 0JecsTools(1.1.2.1), AbilityUser(1.1.2.1), AbilityUserAI(1.1.2.1), CompActivatableEffect(1.1.2.1), CompAnimated(1.1.2.1), CompBalloon(1.1.2.1), CompBigBox(1.1.2.1), CompDeflector(1.1.2.1), CompDelayedSpawner(1.1.2.1), CompExtraSounds(1.1.2.1), CompInstalledPart(1.1.2.1), CompLumbering(1.1.2.1), CompOverlays(1.1.2.1), CompOversizedWeapon(1.1.2.1), CompSlotLoadable(1.1.2.1), CompToggleDef(1.1.2.1), CompVehicle(1.1.2.1), PawnShields(1.1.2.1), ThinkNo
View AnimationName-1601562112661-200.css
.css-selector {
    background: linear-gradient(270deg, #ff450d, #d30dff);
    background-size: 400% 400%;
    -webkit-animation: AnimationName 5s ease infinite;
    -moz-animation: AnimationName 5s ease infinite;
    -o-animation: AnimationName 5s ease infinite;
    animation: AnimationName 5s ease infinite;
}
@-webkit-keyframes AnimationName {
    0%{background-position:0% 50%}
View PY0101EN-5-1-Numpy1D.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ye-yu
ye-yu / Counter.scala
Created Oct 1, 2020
Scala version of the Python Counter class
View Counter.scala
import scala.collection.mutable
/**
* A map to int that counts the frequency of the object of type T.
*
* The equality of the objects is subject to the conditions in
* HashMap.
*
* To create a new counter, use <tt>Counter.of</tt> method.
*
You can’t perform that action at this time.