Skip to content
This repository has been archived by the owner on Oct 15, 2022. It is now read-only.

New Bitwise Ops IA (cheatsheet) #3752

Merged
merged 8 commits into from
Dec 15, 2016
Merged

New Bitwise Ops IA (cheatsheet) #3752

merged 8 commits into from
Dec 15, 2016

Conversation

say4n
Copy link
Contributor

@say4n say4n commented Nov 15, 2016

Background

  • New Instant Answer
    • Cheat Sheets: Bitwise Operations Cheat Sheet

Instant Answer Page: https://duck.co/ia/view/bitwise_ops_cheat_sheet

@daxtheduck
Copy link

daxtheduck commented Nov 15, 2016

JavaScript Bitwise Operations Cheat Sheet

Description: A bitwise operator operates on one or more bit patterns or binary numerals at the level of their individual bits. It is a fast, simple action directly supported by the processor, and is used to manipulate values for comparisons and calculations.

Example Query: bitwise ops cheat sheet, bitwise operations cheatsheet

Tab Name: Cheat Sheet

Source:

These are the important fields from the IA page. Please check these for errors or missing information and update the IA page


This is an automated message which will be updated as changes are made to the IA page

@say4n say4n changed the title New bitwise operations Goodie New bitwise operations cheatsheet Nov 15, 2016
@daxtheduck daxtheduck deployed to beta.duckduckgo.com November 15, 2016 17:24 Active
@daxtheduck daxtheduck deployed to beta.duckduckgo.com November 15, 2016 17:45 Active
@daxtheduck daxtheduck deployed to beta.duckduckgo.com November 15, 2016 17:47 Active
@say4n
Copy link
Contributor Author

say4n commented Nov 17, 2016

@amarlearning Hey, is anything wrong with the PR?

@daxtheduck daxtheduck deployed to beta.duckduckgo.com November 17, 2016 16:21 Active
@daxtheduck daxtheduck deployed to beta.duckduckgo.com November 17, 2016 16:29 Active
"val": "The SHIFT LEFT operator moves the bits to the left, discards the far left bit, and assigns the rightmost bit a value of 0. Each move to the left effectively multiplies op1 by 2."
}
]
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should also include Zero-fill right shift operator as well!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alright. On it.

"name": "Bitwise Operations",
"description": "A bitwise operator operates on one or more bit patterns or binary numerals at the level of their individual bits. It is a fast, simple action directly supported by the processor, and is used to manipulate values for comparisons and calculations.",

"metadata": {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

source name and source URL should be this Bitwise operators.

Good examples and description that's why!

{
"id": "bitwise_ops_cheat_sheet",
"name": "Bitwise Operations",
"description": "A bitwise operator operates on one or more bit patterns or binary numerals at the level of their individual bits. It is a fast, simple action directly supported by the processor, and is used to manipulate values for comparisons and calculations.",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

make your description more precise! 👍

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As in lesser words?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Sayan98 Description should be about your cheat sheet not about the topic of cheatsheet

@daxtheduck daxtheduck deployed to beta.duckduckgo.com November 18, 2016 03:21 Active
@say4n say4n changed the title New bitwise operations cheatsheet New Bitwise Ops IA (cheatsheet) Nov 18, 2016
@daxtheduck daxtheduck deployed to beta.duckduckgo.com November 18, 2016 03:28 Active
@daxtheduck
Copy link

Automated screenshot from [beta.duckduckgo.com](https://beta.duckduckgo.com/?q=bitwise ops cheatsheet)

Mobile screenshot

@say4n
Copy link
Contributor Author

say4n commented Nov 18, 2016

Hi @amarlearning don't you think the <<< is a bit restricted as I only see JS using it. Correct me if I am wrong. Oh and @gautamkrishnar are we good?

@amarlearning
Copy link
Collaborator

@Sayan98 Are you making this cheat sheet for any specific language ? If not then there is no issue in including Zero-fill right shift!

I think this is a general cheat sheet of Bitwise Operations, so it's ok to include Zero-fill right shift.
For less confusion, you can mention there that Works only with JS! 👍

@daxtheduck daxtheduck deployed to beta.duckduckgo.com November 19, 2016 07:06 Active
@daxtheduck
Copy link

Automated screenshot from [beta.duckduckgo.com](https://beta.duckduckgo.com/?q=bitwise ops cheatsheet)

Mobile screenshot

@say4n
Copy link
Contributor Author

say4n commented Nov 19, 2016

@amarlearning Any idea as to why the build is failing? All checks regarding this cheatsheet have passed. There's a problem regarding a different perl module as far as I can infer from the CI build log.

@gautamkrishnar
Copy link
Collaborator

@Sayan98 Failing build is not because of your code.
cc: #3766

@gautamkrishnar
Copy link
Collaborator

This one is not specific to any languages right? @Sayan98

@say4n
Copy link
Contributor Author

say4n commented Nov 20, 2016

@gautamkrishnar Yes it's a generic cheatsheet, not language specific.

@say4n
Copy link
Contributor Author

say4n commented Nov 28, 2016

Hey @gautamkrishnar are we ready to merge?

@daxtheduck
Copy link

Automated screenshot from [beta.duckduckgo.com](https://beta.duckduckgo.com/?q=bitwise ops cheatsheet)

Mobile screenshot

"description": "A quick and handy reference on bitwise operators. A bitwise operation operates on one or more bit patterns or binary numerals at the level of their individual bits. It is a fast, simple action directly supported by the processor, and is used to manipulate values for comparisons and calculations.",

"metadata": {
"sourceName": "Bitwise Operators | Mozilla Developer Network",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can drop "Bitwise Operators |" -- should just read as "Mozilla Developer Network"

@moollaza moollaza merged commit cceafc1 into duckduckgo:master Dec 15, 2016
@daxtheduck
Copy link

@Sayan98 this is now merged! It should be live on DuckDuckGo within one week (or during the next release) and we'll be sure to notify you when it happens.

After your Instant Answer goes live for the World to use, you will be able to see traffic information about your IA as well as receive feedback directly from users.

Please refer to the maintenance guide and docs to keep up with potential changes to your Instant Answer.

Thank you again for your help!

@say4n say4n deleted the sayan98/bitwiseOps branch December 16, 2016 13:32
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants