r/backtickbot • • Oct 18 '21

Termination of Service

18 Upvotes

The backtickbot service and the related website is being terminated, effective immediately.

The bot has fixed people's backticks' 23792 times.


r/backtickbot • • Nov 17 '20

https://reddit.com/r/programminghorror/comments/jvslke/please_tell_me_this_is_just_a_dream/gcn2lnv/

16 Upvotes
REPORT z_am_i_ok.    

DATA lv_ok TYPE sap_bool.    

START-OF-SELECTION.    

lv_ok = abap_false.    

IF lv_ok EQ ' '.    

WRITE: / 'Am I okay? Well:'(001), lv_ok.    

ELSE.    

WRITE / 'Obviously I am okay.'(002).    

ENDIF.    

I am sincerely sorry for everyone not familiar with ABAP and how disgusted you all must be.


r/backtickbot • • Jun 08 '21

https://np.reddit.com/r/gonewild/comments/nv3vsr/im_fuckin_thirstyhelp/h10yccr/

13 Upvotes
a fuckable girl with beautiful tits
highlighted by pulled aside pink
posted a photograph using her wits
and asked me for something to drink
darling i think i could let down my guard
there's somehow i could be coerced
if you use your mouth to get my cock hard
i'll satisfy all of your thirst

r/backtickbot • • Mar 08 '21

https://np.reddit.com/r/programminghorror/comments/m019mq/so_this_is_the_source_code_of_the_official/gq5vr0o/

12 Upvotes

Tried to pretty it up and add comments

TLDR; Looks like it's reading a file and permuting arrays in the file

#include <bits/stdc++.h>
using namespace std; 
ifstream in_file("permutare.in"); 
ofstream out_file("permutare.out");
cosnt unsigned INFINITY = 2000000001; 
unsigned n,m,c,u,v,p,q,x[2010];
int main() {
    // Initialize matrix for dynamic programming
    unsigned D[1000][1000];
    D[0][0]=1;
    for(int i = 1; i < 1000; i++) {
        D[i][0] = 1; // set first value in each row to 1
        for(int k = 1; k <= i; k++) {
            // every value in DP matrix is either sum of left and above or infinity
            // [0 0 ... 0 0]
            // [1 1 ... 1 1]
            // [1 2 3 4 ...]
            // [1 3 6 10 ...]
            //  ...
            // [1 999 ...]
            D[i][k] = min(D[i=1][k] + D[i][k-1], INFINITY);
        }
    }
    unsigned c;  // command number
    unsigned n;  // half length of array
    while(in_file >> c >> n) {  // Read two numbers first is command second is value
        // Our position in DP
        unsigned u = n;  // Row for DP matrix
        unsigned v = n;  // Col for DP matrix

        // Position in the array
        unsigned p = 1;  // start index into x array
        unsigned q = n + 1;  // Halfway index into x array 
        unsigned m = 2 * n;  // Array length  

        // Which mode are we in?
        if(c == 1) {
            // Modify array according to K
            // file looks like "1 n k" 
            int k_num;
            in_file >> k_num;
            // iterate over array in memory
            // We have two cursors p to the start of the x array and q to the middle
            // We change the x array depending on the special K value
            // if K is < the DP cell above us we set the 
            // at the end we will have a matrix where half the values are overwritten by the index
            // e.g.  [1000 2000 3000 4000 5000 6000 7000 8000] -> [1 3 4 4000 2 5]
            for(int i = 1; i <= m; i++) {
                // Check if input_k is < DP value UP in the matrix
                if(D[u][v-1] >= k_num) {
                    // modify first half of array
                    x[p++]= i;  // overwrite with index
                    v--;  // move up
                } else {
                    // modify second half of array
                    x[q++] = i;  // advance the halfway index and set current x value to index
                    k_num -= D[u--][v-1];  // decrease special value by the UP value in DP matrix then move to DP cell left of us
                }
            }
            // Write out array
            for(int i = 1; i <= m; i++) {
                out_file << x[i] << ' ';
            }
            out_file << '\n';
           // continue;  I replaced this with the else branch to make it clearer
        } else {
            // Calculate K from input array
            // Read in array of unsigned ints
            for(int i = 1; i <= m; i++) {
                in_file >> x[i];
            }
            int k_num_2 = 1;
            for(int i = 1; v > 0; i++) {
                // if index from start == the index
                if(x[p] == i) {
                    v--;  // move up dp cell
                    p++;  // advance p index
                } else {
                    // add above DP cell and then move left
                    k_num_2 += D[--u+1][v-1];
                    q++;  // idk
                }
                out_file << k_num_2 << '\n';
            }
        }
    }
    return 0;
}

r/backtickbot • • Dec 23 '20

https://np.reddit.com/r/collegesluts/comments/kisl0a/would_you_fuck_me_while_i_finish_my_coding_project/ggskrop/

10 Upvotes
from time import sleep
import dick

mydick = dick.Dick()
mydick.insert()

while dick.hard:
    mydick.push()
    sleep(0.01)
    mydick.pull()

r/backtickbot • • Dec 02 '20

https://np.reddit.com/r/vimporn/comments/k54rs7/apply_nerdtree_airline_cocnvim_highlight_to_my/gecjilz/

10 Upvotes

theme - elly

Plugins - Nerdtree, coc.nvim, Airline

Settings -

let g:airline_theme='elly'
let g:airline#extensions#tabline#enabled = 1
let g:airline_powerline_fonts = 1
let g:airline#extensions#tabline#show_close_button = 0
let g:airline#extensions#tabline#show_tab_nr = 0

also, coc-markdown will be required.


r/backtickbot • • Nov 26 '20

https://np.reddit.com/r/ProgrammerHumor/comments/k17e1i/that_took_a_wild_turn/gdmp8t3/

10 Upvotes
from anal import Anal

Anal.insert(long.dic)

r/backtickbot • • Mar 09 '21

https://np.reddit.com/r/KidsAreFuckingStupid/comments/m0zz3e/kid_steals_ball_before_english_soccer_match/gqb5396/

8 Upvotes

Instructions:

goto(ball.position)
runto(goal.position)
shot(goal.position)
idle()

r/backtickbot • • Jan 03 '21

https://np.reddit.com/r/xsmallgirls/comments/kpg51j/do_you_like_petite_programming_nerds/ghxey30/

8 Upvotes
extern printf
global main

section .data
  ofc db 'Of course!', 0xa, 0

section .text
main:
  push ebp
  mov ebp, esp

  always: ; to infinity
    push dword ofc
    call printf
    add esp, 4
  jmp always

  leave
  ret

r/backtickbot • • Nov 05 '20

TODO

8 Upvotes
  • Continuously monitor corrected items for deletion, if so delete the r/backtickbot post to comply with the rediquette thing

  • Continuosly monitor corrected items for edits, if so update the conversion too.

  • Provide a way to opt-in after opting out

  • use systemd instead of screen + while loop

  • Monitor submissions in addition to comments

  • Make the opt out of dmmode thing real

  • Ignore single line codeblocks

  • Fix not having a 100% success rate in correctly reformating the offending text

  • escape usernames in replies

  • show screenshot of how comment looks on old reddit

  • reduce response length


r/backtickbot • • Sep 26 '21

https://np.reddit.com/r/InternetIsBeautiful/comments/pv9fxv/this_faq_on_super_metroid_uses_justified_text/heaj4id/

7 Upvotes
----------------------------------------
Use a text editor with a monospace font,
type ten equals signs or whatever, paste
it in 8 times (I'm using forty chars for
this example, but eighty is the standard
for terminals)

Then if your text goes past the last chr
you adjust the wording or phrasing until
it lines up, then carry on writing.

So if your text goes beyond the end char
you change how you've worded it until it
properly lines up, then move to the next
line.

Like I said, if you've got a line that's
too long then you just keep editing till
the thing lines up and then continue.

Just edit the text -- line by line -- so
that each one aligns with the one before
it. Then move to the next line and carry
on until you're done.

It's pretty easy because you can say one
thing in a ton of different ways. It's a
pretty fun thing to do, give it a try!

r/backtickbot • • Feb 04 '21

https://np.reddit.com/r/NoRules/comments/lcch49/_/glz0pcf/

7 Upvotes
⠀⠀⠀⡯⡯⡾⠝⠘⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢊⠘⡮⣣⠪⠢⡑⡌ 
⠀⠀⠀⠟⠝⠈⠀⠀⠀⠡⠀⠠⢈⠠⢐⢠⢂⢔⣐⢄⡂⢔⠀⡁⢉⠸⢨⢑⠕⡌ ㅤ
 ⠀⠀⡀⠁⠀⠀⠀⡀⢂⠡⠈⡔⣕⢮⣳⢯⣿⣻⣟⣯⣯⢷⣫⣆⡂⠀⠀⢐⠑⡌
 ⢀⠠⠐⠈⠀⢀⢂⠢⡂⠕⡁⣝⢮⣳⢽⡽⣾⣻⣿⣯⡯⣟⣞⢾⢜⢆⠀⡀⠀⠪
 ⣬⠂⠀⠀⢀⢂⢪⠨⢂⠥⣺⡪⣗⢗⣽⢽⡯⣿⣽⣷⢿⡽⡾⡽⣝⢎⠀⠀⠀⢡
 ⣿⠀⠀⠀⢂⠢⢂⢥⢱⡹⣪⢞⡵⣻⡪⡯⡯⣟⡾⣿⣻⡽⣯⡻⣪⠧⠑⠀⠁⢐
 ⣿⠀⠀⠀⠢⢑⠠⠑⠕⡝⡎⡗⡝⡎⣞⢽⡹⣕⢯⢻⠹⡹⢚⠝⡷⡽⡨⠀⠀⢔
 ⣿⡯⠀⢈⠈⢄⠂⠂⠐⠀⠌⠠⢑⠱⡱⡱⡑⢔⠁⠀⡀⠐⠐⠐⡡⡹⣪⠀⠀⢘
 ⣿⣽⠀⡀⡊⠀⠐⠨⠈⡁⠂⢈⠠⡱⡽⣷⡑⠁⠠⠑⠀⢉⢇⣤⢘⣪⢽⠀⢌⢎
 ⣿⢾⠀⢌⠌⠀⡁⠢⠂⠐⡀⠀⢀⢳⢽⣽⡺⣨⢄⣑⢉⢃⢭⡲⣕⡭⣹⠠⢐⢗
 ⣿⡗⠀⠢⠡⡱⡸⣔⢵⢱⢸⠈⠀⡪⣳⣳⢹⢜⡵⣱⢱⡱⣳⡹⣵⣻⢔⢅⢬⡷
 ⣷⡇⡂⠡⡑⢕⢕⠕⡑⠡⢂⢊⢐⢕⡝⡮⡧⡳⣝⢴⡐⣁⠃⡫⡒⣕⢏⡮⣷⡟
 ⣷⣻⣅⠑⢌⠢⠁⢐⠠⠑⡐⠐⠌⡪⠮⡫⠪⡪⡪⣺⢸⠰⠡⠠⠐⢱⠨⡪⡪⡰
 ⣯⢷⣟⣇⡂⡂⡌⡀⠀⠁⡂⠅⠂⠀⡑⡄⢇⠇⢝⡨⡠⡁⢐⠠⢀⢪⡐⡜⡪⡊
 ⣿⢽⡾⢹⡄⠕⡅⢇⠂⠑⣴⡬⣬⣬⣆⢮⣦⣷⣵⣷⡗⢃⢮⠱⡸⢰⢱⢸⢨⢌
 ⣯⢯⣟⠸⣳⡅⠜⠔⡌⡐⠈⠻⠟⣿⢿⣿⣿⠿⡻⣃⠢⣱⡳⡱⡩⢢⠣⡃⠢⠁
 ⡯⣟⣞⡇⡿⣽⡪⡘⡰⠨⢐⢀⠢⢢⢄⢤⣰⠼⡾⢕⢕⡵⣝⠎⢌⢪⠪⡘⡌⠀
 ⡯⣳⠯⠚⢊⠡⡂⢂⠨⠊⠔⡑⠬⡸⣘⢬⢪⣪⡺⡼⣕⢯⢞⢕⢝⠎⢻⢼⣀⠀
 ⠁⡂⠔⡁⡢⠣⢀⠢⠀⠅⠱⡐⡱⡘⡔⡕⡕⣲⡹⣎⡮⡏⡑⢜⢼⡱⢩⣗⣯⣟
 ⢀⢂⢑⠀⡂⡃⠅⠊⢄⢑⠠⠑⢕⢕⢝⢮⢺⢕⢟⢮⢊⢢⢱⢄⠃⣇⣞⢞⣞⢾
 ⢀⠢⡑⡀⢂⢊⠠⠁⡂⡐⠀⠅⡈⠪⠪⠪⠣⠫⠑⡁⢔⠕⣜⣜⢦⡰⡎⡯⡾⡽

r/backtickbot • • Dec 26 '20

https://np.reddit.com/r/SPACs/comments/kkf7tf/degiro_and_missing_spacs/gh2inq9/

7 Upvotes

I always have to look the ISIN up on third party websites, as none of the free spac trackers include them.

Here is a dump of what is currently in my table. Incomplete. No warranty for correctness.

AACQ	KY04316G1057
ACTC	KYG045611095
AGC	KYG0370L1086
AJAX	KYG0190X1007
APXT	US03768F1021
ASLE	US6097541063
AVAN	KYG0682V1095
BFT	US3443281098
BTWN	KYG1355U1132
CCAC	KYG215131098
CFII	US15725Q1040
CGRO	US19424L1017
CIIC	US12559C1036
CLA	KYG2283K1105
DFNS	US50201G1067
DGNR	KYG283021007
DGNS	KYG283141052
DM	US89628U1088
DMYD	US2332771029
ERES	US2746811056
EXPC	US30217C1099
FIII	US3498851035
FSRV	US3180851079
FUSE	US36118H1059
GHIV	US3828651030
GIK	US37519D1072
GIX	US3750361004
GOEV	US42589C1045
GSAH	US36258Q1058
HZON	KYG460441069
IMPX	KYG010461047
IPOC	KYG8251K1076
IPOD	KYG825141032
IPOE	KYG8252P1054
IPOF	KYG8251L1059
IPV	US46064A1034
JIH	US48205G1067
LAZR	US3828721098
LCA	US51476X1054
LEAP	KYG7552B1059
LFAC	US50200K1088
LGVW	US5431951012
LOAK	US53804F1030
MFAC	US58518F1093
NBAC	KYG6463T1067
NGA	US66516T1043
NOVS	US67012U1088
NPA	US64822P1066
OPEN	KYG8250T1094
PCPL	KYG1992Y1145
PDAC	KYG7008A1159
PSTH	US71531R1095
QELL	KYG7307X1051
RMG	US7496411064
RTP	KYG7483N1299
SBE	US87105M1027
SKLZ	US34407Y1038
SNPR	KYG895541020
SOAC	KYG8598Y1098
SRAC	US85236Q1094
STPK	US8551851046
STWO	KYG007481065
SV	KYG8377A1085
THBR	KYG8857S1167
THCA	US90070A1034
THCB	US90069K1043
TPGY	KYG8990D1253
VGAC	KYG9446E1052
WPF	US34431F1049
XL	US72582K1007

r/backtickbot • • Sep 11 '21

https://np.reddit.com/r/wallstreetbets/comments/plsh4c/weekend_discussion_thread_for_the_weekend_of/hcgii7y/

6 Upvotes
The hedgies can't learn this power.

8====D~

r/backtickbot • • Sep 02 '21

https://np.reddit.com/r/femboy/comments/pgq7ol/include_iostream_using_namespace_std_int_main_for/hbd308d/

6 Upvotes

You missed a space before the second <<. Golfed and fixed version:

#include <iostream>
int main(){for(int a=0;a<70;a++)std::cout<<"Count to funny number "<<a<<std::endl;}

Very cute, though!


r/backtickbot • • Aug 11 '21

https://np.reddit.com/r/EscapefromTarkov/comments/p2i5kf/opinion_current_voice_lines_voip/h8lkqk1/

6 Upvotes

Better: Use the VGS system from Tribes

You'd pull the menu with V

and then you'd have a list of categories, like:

Global

Attack

Defend

Need

Enemy

And say you'd select 'General' with 'G'

and then you'd select 'S' for 'Shazbot!' which is the in-universe curse word in the game.

Well you get good at this really fast and people would slam out entire conversations extremely easily

'I'm going for the flag!'

'No. I am going for the flag'

'Okay. I'll cover you!'

'I have the flag!'

'Attacking!'

It was really smooth.

So, a better snappier system like the VGS system in tribes. AND voice lines need to actually MATCH THE INTENTION OF WHAT YOU'RE SELECTING!

Like, if I select 'Hold your fire' my PMC should not shout out 'Fuck!'


r/backtickbot • • Jun 14 '21

https://np.reddit.com/r/programminghorror/comments/nzi44d/thanks_i_hate_it/h1pnszn/

6 Upvotes

something like

var arabics = []int{1000, 900, 500, 400, 100, 90, 50, 40, 10, 9, 5, 4, 1}
var romans = []string{"M", "CM", "D", "CD", "C", "XC", "L", "XL", "X", "IX", "V", "IV", "I"}

// ToRomanNumeral converts arabic numbers to roman numerals
func ToRomanNumeral(arabic int) (roman string, err error) {
	if !(arabic > 0 && arabic <= 3000) {
		return roman, fmt.Errorf("number is out of range")
	}
	for i := 0; i < len(arabics); i++ {
		for arabic >= arabics[i] {
			arabic -= arabics[i]
			roman += romans[i]
		}
	}
	return roman, nil
}

r/backtickbot • • Mar 20 '21

https://np.reddit.com/r/SatoshiStreetBets/comments/m8vydl/daily_discussion_march_20_2021/grn9j71/

6 Upvotes

Mandala exchange token MDX Moonshot

MDX for moonshot - 2nd chance BNB

MDX is a no brainer, here’s why…

MDX is the native token to Mandala Exchange, just like BNB is native to Binance

Mandala just launched an exchange on Binance Cloud in late December 2020 and their token, MDX, scarily mirrors BNB’s path. The kicker is, Binance has helped build the Mandala Exchange and MDX functionality! That’s right Mandala Exchange is 100% built by Binance.

Mandala and Binance share the same order books (264+ assets live for a total of 946+ pairs to trade with, and counting) and MDX will get you the same fee discounts as BNB, which means you can get 50% discount on fees if you buy $1.4M of BNB, or you can get the same discount for the same order books on Mandala if you buy and lock $15K of MDX!! That’s about 1/100th of the price. And Mandala has already stated they plan to adjust the discount tiers as MDX price increase, which will give it even more room to appreciate.

Mandala already has an operational platform, which makes this an easy Moonshot. Futures trading for the same pairs on Binance will be launching this quarter and margin trading will launch shortly thereafter, along with Mandala's own listing of unique top Altcoins which will actually give Mandala more tokens than Binance. Combine this with Mandala's extremely low fees and you have a one-stop exchange for the hottest project on the markets.

Here is a breakdown of the logic (math updated on Feb 17, 2021) for the HUGE intrinsic value of the Mandal token :

If I hold 320k MDX as a TAKER I pay 0.05% in fees on Mandala.Exchange. This the equivalent of holding 9,000 BNB & 80,000 BTC in 30d Volume in Binance’s VIP 8 tier. These are the same spot rates, liquidity, and orderbooks as Binance

That arithmetic presents a material trading fee schedule delta. Here's my math:

+ 320,000 MDX USD Value = $16,000 at current spot price of $0.05 (30 Day Locking Requirement, No Token Burn, No Volume Requirement)
+ 9,000 BNB USD Value = $1,512,000 at current spot price of $168 (Account Balance Requirement, Tokens Burn, 30d Trade Volume Requirement)

So outside of the specialized locking requirements. For MDX to appreciate equal value of BNB's fee structure $1,512,000, the MDX spot price would need to grow to $4.73.
Math:

  • 320,000 MDX x $4.73 = $1,512,000

  • 9,000 BNB x $168.00 = $1,512,000

Their customer service is stellar as well, with 24/7 English support (native English) speaking support. Ask anyone who has had to go through token swaps, KYC, etc. Mandala has a dedicated support channel in their Discord for any speed bumps or questions you may have.

Additionally Mandala will also be listing it’s own complement of projects. Mandala aims to be a 1 stop shop for both Binance listed projects and high quality defi projects.

To further help attract projects and grow both liquidity and volume, Mandala Exchange recently won the most recent Hummingbot vote and will be included in release v0.37.0!

Currently Hummingbot is only approved for use on: Binance Coinbase Pro Huobi Global Bittrex Global Liquid KuCoin Kraken Radar relay

Hummingbot adds the following features to Mandala Exchange:

-Adds a trading bot for Mandala users. (DEX or CEX <-> Mandala arb strategies)

  • Adds a Mandala plug for 1350+ unique high volume traders (the people who benefit the most from the 320k club) and 6k bot users.

  • Opens liquidity mining campaigns for Mandala specific pairs (boost exchange volume by 5x-10x for these pairs via decentralized MM), entices new Mandala-specific listings. These campaigns will be copromoted with Hummingbot

  • coo Matches MDX with the people that will benefit from the current utility. MDX price appreciation. (buckle up. it's going to be fun)

  • Adds a revenue stream for Mandala users as they can learn to run the bot and earn money with their crypto holdings. Especially the MDX/USDT pair

Mandala will not be listed officially on the major screeners (Gecko, CMC, etc.) as exchange until early March. So take advantage of this time.

If you missed out on BNB before it took off, now is your time to buy the little brother and enjoy the ride.

Oh and all funds on Mandala are actually stored in Binance wallets and insured under Binance SAFU

https://www.mandala.exchange

https://youtu.be/lF90VlYToQg


r/backtickbot • • Jan 26 '21

https://np.reddit.com/r/Python/comments/l47ppr/why_we_dont_use_python_native_enums/gktp1uo/

6 Upvotes

I thought this article was trying a bit too hard to discount Python's Enum's. (Regardless of whether or not they're promoting their creation, tritokens.)

  1. Wrt "no semantics": that's a bad example to show name vs value issues. Fruit.apple = 'Apple' should have just been Fruit.Apple = auto() # or 1 - which is exactly how it was done in the docs' test example. For enums, it's the members that have meaning/significance, not their values. The values indicate things like flags or ordering.

    In the vast majority of use-cases, one doesn’t care what the actual value of an enumeration is.

    In any case, for storage in a DB - it's not ambiguous. Consider that the value could be a tuple, or a list, or a dict - which isn't going into a DB. It would have to be the Name (the member). Every time. (And normalised; where integer values in the DB need not be related to the value stored in the enum.)

  2. Hard to add data? You mention "It’s impossible to understand the definition of the data without reading the constructor" - then just move the constructor definition to the top and the planets after. Python doesn't care.

    If the clarity of the fields' names was a concern, could have used a namedtuple. Less repetition in the definition of Planets than in the "tri.token" approach, and equally clear. (Too bad they didn't do it this way in the Python docs, but those were just examples illustrating potential.)

         Planet = namedtuple('Planet', 'mass radius')
         
         class Planets(Enum):
             MERCURY = Planet(3.303e+23, 2.4397e6)
             VENUS   = Planet(4.869e+24, 6.0518e6)
             EARTH   = Planet(5.976e+24, 6.37814e6)
             MARS    = Planet(6.421e+23, 3.3972e6)
             ...

    Also, for "and the constructor is a bit weird too as self here are the cases, not the Planet class!" - the docs clearly state that enum classes are not normal classes. Just like metaclasses and dataclasses are not normal classes. The same could be said of namedtuples, because you can't simply inherit from one and add a member (attribute).

    Even though we use the class syntax to create Enums, Enums are not normal Python classes. See How are Enums different? for more details.

  3. Wrt "scales badly for sparse data" - if you have that many items per Field, again, could have just used a namedtuple with defaults.

         default = object()
         Field = namedtuple('Field', 'a b c d e dw_name g h i j', defaults=(default, None, None, None, None,
                                                                            None, default, None, None, None))
         class Fields(Enum):
             party_group_name = Field(dw_name='rec_party')
             another_field = Field(a='no', b='other', c='columns')
             ...

    And I want to be clear: The issue in the blog's example was not 'sparse fields'. It had nothing to do with enums. It's to do with what's on the right-hand-side of the = sign - what data structure you're using to store those values (not members). Could have just been simple class instances. And more recently, dataclasses.

  4. Members of enums with the same value are considered aliases, with the first definition being the primary. The code in #4 should not have been an enum in the first place. And imho, not allowing aliases in enums (the @unique decorator) should have been the default.

My view: Python's enum's are good, but not necessarily great. But...some 'enum' examples in the blog should have been dataclasses, or just plain classes/containers.

As mentioned "tritoken" was created before enum's existed and have a bunch of extra features - which would occur when you roll your own solution. And invariably it has specific features and use-cases you need but are not universally applicable.


r/backtickbot • • Sep 30 '21

https://np.reddit.com/r/programming/comments/px4pum/the_difference_between_go_and_rust/hetijg1/

5 Upvotes
err, thing := whatever()
if err != nil {
    return err
}

Rinse and repeat. If you insert a new line between each repetition of that pattern, you get an if err != nil every ~5 lines.

Parent comment's math checks out :)


r/backtickbot • • Sep 22 '21

https://np.reddit.com/r/GlobalOffensive/comments/psws9y/csgo_operation_riptide/hdu0x8q/

5 Upvotes

I'm a bit worried about splitting the matchmaking queue more and more.

There's already a lot of different kind of queues, diluting the playerbase.

It's increasingly difficult to find quality games when players are split into more and more pools.

Also, lol'd:

Dust2:
– Slight visibility tweak from T spawn through mid

Slight tweak, eh?


r/backtickbot • • Aug 08 '21

https://np.reddit.com/r/lewdgames/comments/owcdmb/what_are_some_good_western_games_with_futanari/h852tzd/

5 Upvotes

Copy paste it into a file with a .html extension then open it. Its just bookmarks from the f95 futa tags. most of them are western. Sorry mods if it triggers the spam filter

<A HREF="https://f95zone.to/threads/acme-of-abyss-v0-14-public-cheepysnake.20700/#lg=post-1282922&slide=6">[Unreal Engine] - [Onhold] Acme of Abyss [v0.14 public] [CheepySnake] | F95zone</A>
<A HREF="https://f95zone.to/threads/the-red-room-v0-3b-alishia.19951/">[VN] - [Ren&#39;Py] - [Abandoned] The Red Room [v0.3b] [Alishia] | F95zone</A>
<A HREF="https://f95zone.to/threads/warlock-and-boobs-v0-341-hotfix-3-boobsgames.18692/">[RPGM] Warlock and Boobs [v0.341 hotfix 3] [boobsgames] | F95zone</A>
<A HREF="https://f95zone.to/threads/hardcoded-v0-0-6-fortunae-virgo.8884/">[VN] - [Others] Hardcoded [v0.0.6] [Fortunae Virgo] | F95zone</A>
<A HREF="https://f95zone.to/threads/the-menagerie-final-lupiesoft.4083/">[VN] - [Ren&#39;Py] - [Completed] The Menagerie [Final] [Lupiesoft] | F95zone</A>
<A HREF="https://f95zone.to/threads/futaring-v3-39-mofuland.3763/">[Others] - [Completed] Futaring [v3.39] [MOFULAND] | F95zone</A>
<A HREF="https://f95zone.to/threads/space-pirate-sara-final-black-lilith.3450/">[VN] - [Others] - [Completed] Space Pirate Sara [Final] [Black Lilith] | F95zone</A>
<A HREF="https://f95zone.to/threads/breeders-of-the-nephelym-v0-753-6a-derelicthelmsman.2483/">[Unreal Engine] Breeders of the Nephelym [v0.753.6A] [DerelictHelmsman] | F95zone</A>
<A HREF="https://f95zone.to/threads/futanari-quest-2018-07-04-futanari-quest.1873/">[RPGM] - [Completed] Futanari Quest [2018-07-04] [Futanari Quest] | F95zone</A>
<A HREF="https://f95zone.to/threads/venture-seas-beta-branch-fixes-virtuousdevelopment.1554/">[VN] - [Java] Venture Seas [Beta Branch Fixes] [VirtuousDevelopment] | F95zone</A>
<A HREF="https://f95zone.to/threads/futa-fix-dick-dine-and-dash-v12282020-cyberframe-studios.69433/">[VN] - [Others] - [Completed] Futa Fix Dick Dine and Dash [v12282020] [Cyberframe Studios] | F95zone</A>
<A HREF="https://f95zone.to/threads/kinokogari-v0-027d-mofuland.68473/">[Unity] Kinokogari [v0.027d] [Mofuland] | F95zone</A>
<A HREF="https://f95zone.to/threads/vixens-tail-duskvale-v0-2-1-fluxcarnal.66857/">[Ren&#39;Py] Vixens Tail: Duskvale [v0.2.1] [Fluxcarnal] | F95zone</A>
<A HREF="https://f95zone.to/threads/carnal-instinct-v0-2-8-team-carnal-instinct.65211/">[Unreal Engine] Carnal Instinct [v0.2.8] [Team Carnal Instinct] | F95zone</A>
<A HREF="https://f95zone.to/threads/another-night-act1-v2-0-zokas.61251/">[RPGM] - [Abandoned] Another Night [ACT1 v2.0] [Zokas] | F95zone</A>
<A HREF="https://f95zone.to/threads/vixens-tail-v1-0-fluxcarnal.51546/">[VN] - [Ren&#39;Py] - [Completed] Vixens Tail [v1.0] [Fluxcarnal] | F95zone</A>
<A HREF="https://f95zone.to/threads/full-service-shop-final-alexis-royce.50348/#post-3334599">[VN] - [Ren&#39;Py] - [Completed] Full Service Shop [Final] [Alexis Royce] | F95zone</A>
<A HREF="https://f95zone.to/threads/futa-dungeon-v0-0-3-nullptr.45973/">[VN] - [Ren&#39;Py] - [Abandoned] Futa Dungeon [v0.0.3] [Nullptr] | F95zone</A>
<A HREF="https://f95zone.to/threads/inner-growth-v1-0-morally-purple.43165/">[VN] - [Ren&#39;Py] Inner Growth [v1.0] [Morally Purple] | F95zone</A>
<A HREF="https://f95zone.to/threads/sculptor-v0-13-0-discarded-union.42146/">[VN] - [Ren&#39;Py] - [Abandoned] Sculptor [v0.13.0] [Discarded Union] | F95zone</A>
<A HREF="https://f95zone.to/threads/tales-of-terrara-v0-2-0-prepatched-thunder-one.39485/">[Ren&#39;Py] Tales of Terrara [v0.2.0 Prepatched] [Thunder One] | F95zone</A>
<A HREF="https://f95zone.to/threads/strive-conquest-v0-5-2b-maverik.39237/">[Others] Strive: Conquest [v0.5.2b] [Maverik] | F95zone</A>
<A HREF="https://f95zone.to/threads/champion-of-venus-v0-3-3-umbrelloid.34859/">[VN] - [Ren&#39;Py] Champion of Venus [v0.3.3] [Umbrelloid] | F95zone</A>
<A HREF="https://f95zone.to/threads/equellum-fabula-carmen-cygni-v0-3-11-3-gaikiken.32985/">[RPGM] Equellum/Fabula: Carmen Cygni [v0.3.11.3] [Gaikiken] | F95zone</A>
<A HREF="https://f95zone.to/threads/erected-city-the-game-final-smerinka.21210/">[VN] - [HTML] - [Completed] Erected City: The Game [Final] [Smerinka] | F95zone</A>
<A HREF="https://f95zone.to/threads/demons-rise-up-demo-berryisvibin.75580/">[VN] - [Ren&#39;Py] Demons Rise Up [Demo] [Berryisvibin] | F95zone</A>
<A HREF="https://f95zone.to/threads/neon-nights-v1-0-crazysky3d.78518/">[VN] - [Ren&#39;Py] - [Completed] Neon Nights [v1.0] [CrazySky3D] | F95zone</A>

r/backtickbot • • Mar 27 '21

https://np.reddit.com/r/eroticliterature/comments/mbc4wr/asstr_new_mirror/gsinwao/

5 Upvotes

You'd need to edit your hosts file. On windows, add the following lines to C:\Windows\System32\Drivers\etc\hosts:

64.71.155.222 www.asstr.org
64.71.155.222 asstr.org
64.71.155.222 www1.asstr.org

Then you can just go to the normal site


r/backtickbot • • Mar 16 '21

https://np.reddit.com/r/MechanicalKeyboards/comments/kqngae/bigknob_macropad_rotary_encoder_4_switches_with/gr2tak5/

5 Upvotes

I actually was able to figure out how to flash it with settings for the rotary encoder, I guess you just can't do it via the GUI tools like the Windows GUI application or that web form, but the raw C code for the default keymap for example has a section as follows:

    void encoder_update_user(uint8_t index, bool clockwise) {
      if (index == 0) { 
        if (clockwise) {
          tap_code(KC_VOLU);
        } else {
          tap_code(KC_VOLD);
        }
      } 
    }

So, it was easy enough for me to build a .hex file with that set to different keycodes! I just had to do so via the CLI tools. Unfortunately I then ran into mysterious problems getting flashing to actually work, so ironically I compiled on Linux using the CLI qmk command, then rebooted into Windows and used the QMK GUI app to flash the .hex file I'd generated.


r/backtickbot • • Mar 12 '21

https://np.reddit.com/r/rust/comments/m3eqpu/yew_bevy_and_some_message_passing_magic/gqpsqg6/

5 Upvotes

From the [bevy Discord](https://discord.com/channels/691052431525675048/691052431974465548/819763823807299584)

Bevy side:

use bevy::prelude::{self, *};

use common::transport::{Event, EventHandle};

pub struct Plugin {
    pub handle: EventHandle,
}

impl prelude::Plugin for Plugin {
    fn build(&self, app: &mut AppBuilder) {
        app.add_resource(self.handle.clone())
            .add_event::<Send>()
            .add_event::<Receive>()
            .add_system(send.system())
            .add_system(receive.system())
            .add_system(log.system());
    }
}

#[derive(Debug)]
pub struct Send(Event);
#[derive(Debug)]
pub struct Receive(Event);

fn receive(handle: ResMut<EventHandle>, mut events: ResMut<Events<Receive>>) {
    if let Ok(ev) = handle.receiver.try_recv() {
        events.send(Receive(ev));
    }
}

fn send(
    handle: ResMut<EventHandle>,
    events: ResMut<Events<Send>>,
    mut reader: Local<EventReader<Send>>,
) {
    for ev in reader.iter(&events) {
        if let Err(e) = handle.sender.try_send(ev.0.clone()) {
            error!("Error sending event: {:?}", e);
        }
    }
}

fn log(events: Res<Events<Receive>>, mut reader: Local<EventReader<Receive>>) {
    for ev in reader.iter(&events) {
        info!("Event: {:?}", ev);
    }
}

Yew side:

use async_std::channel::{self, Sender};
use yew::prelude::*;
use yewtil::future::LinkFuture;

use common::transport::{Event, EventHandle};

pub enum Msg {
    Send(Event),
    Receive(Event),
}

pub struct App {
    props: Props,
    link: ComponentLink<Self>,
}

#[derive(Properties, Clone)]
pub struct Props {
    handle: EventHandle,
}

impl Component for App {
    type Message = Msg;
    type Properties = Props;

    fn create(props: Self::Properties, link: ComponentLink<Self>) -> Self {
        let this = Self { props, link };
        this.listen();

        this
    }

    fn update(&mut self, msg: Self::Message) -> ShouldRender {
        match msg {
            Msg::Send(e) => {
                self.props.handle.sender.try_send(e).ok();
            }
            Msg::Receive(e) => {
                log::info!("Event: {:?}", e);
                self.listen();
            }
        }

        false
    }

    fn change(&mut self, _props: Self::Properties) -> ShouldRender {
        false
    }

    fn view(&self) -> Html {
        html! {}
    }
}

impl App {
    fn listen(&self) {
        let handle = self.props.handle.clone();
        self.link.send_future(async move {
            loop {
                match handle.receiver.recv().await {
                    Ok(msg) => return Msg::Receive(msg),
                    Err(e) => log::error!("Error receiving event: {:?}", e),
                }
            }
        });
    }
}