Skip to content

Instantly share code, notes, and snippets.

abdul-jabbar01 /
Created Aug 22, 2019
Bash script to send motivational quotes daily in slack channel
#This script uses the API of to get the inspirational quotes. And then send it to slack channel daily
#You can set the bash script in the cronjob. And the cronjob will run this script daily.
#Slack Configuration
TEXT="It's time to motivate you"
rust-play /
Created Aug 22, 2019
Code shared from the Rust Playground
use std::io::Write;
pub fn feed_type_post_body(kind: bool) -> for<'w> fn(into: &'w mut dyn Write) -> Box<dyn Write + 'w> {
match kind {
true => feed_rss_post_body,
false => feed_rss_post_body,
pub fn feed_rss_post_body<'w>(into: &'w mut dyn Write) -> Box<dyn Write + 'w> {
View insert_data
#Comentário de uma linha
Comentário de multiplas linhas
Comentário de multiplas linhas
CodersArts /
Created Aug 22, 2019
Multiple windows in PyQT5
import sys
from PyQt5.QtCore import *
from PyQt5.QtGui import *
from PyQt5.QtWidgets import *
from PyQt5.QtCore import *
from PyQt5 import QtWidgets, uic
class MainWindow(QtWidgets.QMainWindow):
count = 0
HugsLibRecordKeeper / output_log.txt
Created Aug 22, 2019
Rimworld output log published using HugsLib
View output_log.txt
Log uploaded on Thursday, August 22, 2019, 7:05:21 PM
Loaded mods:
Core: (no assemblies)
RimThemesLite: 0Harmony(, LibAPNG(0.2.6979.15011), RimThemesLite(2019.3.1.0)
HugsLib[6.0.1]: 0Harmony(, HugsLib(
RIMMSLoadUp: 0Harmony(, RIMMSLoadUp(1.0.7040.29929)
Humanoid Alien Races 2.0: 0Harmony(, AlienRace(
Combat Extended: 0Harmony(, CombatExtended(
Core SK: 0Harmony(, ArchitectSense(1.0.6905.6874), Compatibility_AlienRaces(1.0.6978.14176), Compatibility_CombatExtended(1.0.7037.41287), Core_SK(1.0.6901.14209), FertileFields(1.0.6905.6873), Mending(1.0.7114.20269), Quarry(, Rainbeau's Archipelagos(1.0.6903.8520), RightToolForJob(1.0.7086.33308), UniversalFermenter(
EdB Prepare Carefully: 0Harmony(, EdBPrepareCarefully(
View FunctionalPropertyModifiers.cpp
#include "FunctionalPropertyModifiers.h"
void fpmCallStore::CallAll(double time)
for (auto i : m_FunctionCallMap)
const fpmFunctionCalls& calls = i->value;
calls.call_all_fn(i->key, calls, time);
View query
use lib ‘data/all-modules/cpan/FCO/Red/lib’; use Red; model Bla { has UInt $.id is serial }; my $*RED-DB = database "SQLite"; Bla.^create-table; Bla.^create for ^5; .say for Bla.^all
View server.json
"feed": [
"id": 1,
"image": "",
"small": "",
"aspectRatio": 0.834,
"description": "Working hard at Rocketseat!",
"authorId": 1
View query
use lib ‘data/all-modules/cpan/FCO/Red/lib’; use Red; model Bla { has Unit $.id is serial }; my $*RED-DB = database "SQLite"; Bla.^create-table; Bla.^create for ^5; .say for Bla.^all
You can’t perform that action at this time.