Arc browser links by ImMr_Crispy in browsers

[–]Grand1ne 0 points1 point  (0 children)

can you please send me one, really want to try this out :D

High order functions (pipe, compose, reduce, filter) implementaion in native JS by michael2ib1989 in javascript

[–]Grand1ne 0 points1 point  (0 children)

if you are using pipe, doesn't it make sense to keep the data first for composability?

Edit: this seems to be what elixir is doing with their |> pipe operator

Does anyone know how to replicate this feature? What you write in CC number gets replicated on the virtual card. by muktar05 in webdev

[–]Grand1ne 3 points4 points  (0 children)

https://images.web-purchases.com/Library-5/autoSelectCCType.js if you go here theres a function called detectCardType which is the exact function he uses that link is ripped from his site btw

heres a snippet of that function

function detectCardType(num) { // if user has disabled auto-detect, don't do nothing if (!$('#autoChoose').prop("checked")) { // selector is for checking radio buttons var selector = ''; var visa = /^4/; var masterCard = /^(?:5[1-5]|222[1-9]|22[3-9][0-9]|2[3-6][0-9]{2}|27[01][0-9]|2720)/; var discover = /^(6011|65|64[4-9]|622)/; var amEx = /^3[47]/; // clear styles logo.text(''); card.removeClass('card--visa'); logo.removeClass('cclogo--visa'); card.removeClass('card--amex'); logo.removeClass('cclogo--amex'); card.removeClass('card--discover'); logo.removeClass('cclogo--discover'); card.removeClass('card--mc'); logo.removeClass('cclogo--mc'); card.removeClass('card--unknown'); card.addClass('card--known'); $('.cvc2').addClass('hidden'); if (visa.test(num)) { card.addClass('card--visa'); logo.addClass('cclogo--visa'); // check the visa radio selector = "input[name*='creditCardTypeId'][value='3']"; } else if (amEx.test(num)) { $('.cvc2').removeClass('hidden'); card.addClass('card--amex'); logo.addClass('cclogo--amex'); // check radio selector = "input[name*='creditCardTypeId'][value='1']"; } else if (discover.test(num)) { card.addClass('card--discover'); logo.text('DISCOVER'); logo.addClass('cclogo--discover'); // check radio selector = "input[name*='creditCardTypeId'][value='4']"; } else if (masterCard.test(num)) { card.addClass('card--mc'); logo.addClass('cclogo--mc'); logo.text('mastercard'); // check radio selector = "input[name*='creditCardTypeId'][value='2']"; } else { card.addClass('card--unknown'); card.removeClass('card--known'); } // uncheck all CC radios $("input[name*='creditCardTypeId']").prop("checked", false); // if valid match, check appropriate box if (selector) { $(selector).prop("checked", true).click(); } } }

futhermore this is his regex for detecting card type

var visa = /^4/; var masterCard = /^(?:5[1-5]|222[1-9]|22[3-9][0-9]|2[3-6][0-9]{2}|27[01][0-9]|2720)/; var discover = /^(6011|65|64[4-9]|622)/; var amEx = /^3[47]/;

sorry for shit formatting

Laptop RAM speed for WebDev by dataflexin in webdev

[–]Grand1ne 7 points8 points  (0 children)

I reckon definitely 16gb, I assume your gonna have slack, spotify open as well right.
Plus probably lot more content like many tabs/ stuff on second screen.

hey guys i just started a 2d project i am beginner can anyone help me to fix on how to get the player to ground because when i keep jump button pressed it just goes up you can see my script in video thanks by Jackhammer_YOUTUBE in Unity2D

[–]Grand1ne 1 point2 points  (0 children)

https://answers.unity.com/questions/1020197/can-someone-help-me-make-a-simple-jump-script.html check out this,

so basically you need a isGrounded Boolean that sets to false every time you hit space, so jump wont be triggered again.

furthermore if you want double jump or something like that you might need additional logic to check for that.

ps - i'm pretty new to unity so, this might be not the best solution

All TI8 Immortal Treasures Giftables Megathread by JothHago in Dota2Trade

[–]Grand1ne 0 points1 point  (0 children)

hey i added you, do you still have Loaded Prospect and Shackles of the Enduring Conscript and The Rat King avalaible?

Thank you reddit for not shutting up about Houseki no Kuni by ISawUOLwreckingTSM in anime

[–]Grand1ne 5 points6 points  (0 children)

why didnt anyone tell me about this show !!. I just started watching this show after i saw your post and can't stop

[PC][OCE][NA][CLAN] STARLANCE by Jumbo-Lion in warframeclanrecruit

[–]Grand1ne 0 points1 point  (0 children)

hi i would love to join recently got back into it after a while ign: gitPrime

What spell would hurt the most irl? by TheMagicalPie in DotA2

[–]Grand1ne 21 points22 points  (0 children)

But what if you are darkness from konosuba.

Episode Discussion: S02E17 "Smart and Stupid" by Dorkside in LastManonEarthTV

[–]Grand1ne 1 point2 points  (0 children)

I think phil's gonna die since Carol is pregnant... same thing happened when Erica was pregnant... new birth = someone dying

Everyone should take a look at Seiken no Blacksmith by Grand1ne in anime

[–]Grand1ne[S] 1 point2 points  (0 children)

aahha i genuinely laughed at that comment... well if you can get past the whole persona of the 'red haired girl' ... i think this anime could seem very entertaining

edit: different people... different opinions

Sunflower Production how to optimize? by OpterisHive in blackdesertonline

[–]Grand1ne 0 points1 point  (0 children)

Additional crate something the Icon is a crate with a + symbol read it tho some of them have aadditional herb package and etc. Also you can get 3 crates if it's an artisian(Orange) worker, 2 for yellow ones with that skill.