Just my random coding struggles with some hip hop sprinkled in #vitalgroundz. While your here click a Ad or two.
Sunday, December 17, 2017
Friday, September 15, 2017
#FreeCodeCamp Change Text with Click Events
#FreeCodeCamp Change Text with Click Events
When our click event happens, we can use jQuery to update an HTML element.
Let's make it so that when a user clicks the "Get Message" button, we change the text of the element with the class
message
to say "Here is the message".
We can do this by adding the following code within our click event:
$(".message").html("Here is the message");
Wednesday, August 9, 2017
Caesars Cipher
One of the simplest and most widely known ciphers is a
Caesar cipher
, also known as a shift cipher
. In a shift cipher
the meanings of the letters are shifted by some set amount.
A common modern use is the ROT13 cipher, where the values of the letters are shifted by 13 places. Thus 'A' ↔ 'N', 'B' ↔ 'O' and so on.
Write a function which takes a ROT13 encoded string as input and returns a decoded string.
All letters will be uppercase. Do not transform any non-alphabetic character (i.e. spaces, punctuation), but do pass them on.
Tuesday, August 8, 2017
Seek & Destroy
Return the lowest index at which a value (second argument) should be inserted into an array (first argument) once it has been sorted. The returned value should be a number.
For example,
getIndexToIns([1,2,3,4], 1.5)
should return 1
because it is greater than 1
(index 0), but less than 2
(index 1).
Likewise,
getIndexToIns([20,3,5], 19)
should return 2
because once the array has been sorted it will look like [3,5,20]
and 19
is less than 20
(index 2) and greater than 5
(index 1).
Remember to use Read-Search-Ask if you get stuck. Write your own code.
Here are some helpful links:
Monday, August 7, 2017
Falsy Bouncer
- Remove all falsy values from an array.
- Falsy values in JavaScript are false, null, 0, "", undefined, and NaN.
- Remember to use Read-Search-Ask if you get stuck. Write your own code.
Here are some helpful links:
Boolean Objects
Array.prototype.filter()
Saturday, August 5, 2017
Friday, August 4, 2017
Saturday, July 29, 2017
2Centz: Is Hip Hop Fiend Out
Is Hip Hop Fiend Out
2017-07-29 | ShakaLu - Editor in Chief
When did being a fiend for pharmaceutical drugs become so perversely prevalent in Hip Hop?
It seems like every other song on popular radio makes mention of the joys of highly addictive pharmaceutical drugs like Oxycontin and Percocet and synthetic (but no less dangerous) drugs like MDMA aka Molly. Now, let’s be clear and acknowledge there has always seemed to be an embrace of substance use in Hip Hop. There is no denying that weed and alcohol has always been staples of Hip Hop music and commonplace within the Hip Hop community. But it seems like things are taking a severe turn for the worse in contemporary Hip Hop. I want to be careful and avoid presenting my concerns like there is a generational divide and only younger Hip Hop (the Seedz) heads promote this seriously dangerous behavior. To do so would be misleading and insincere. And I am not trying to make light of the social dangers caused by alcoholism. But this new element of being okay with these kinds of mind altering substances is a totally different monster.
Percocet is a highly addictive narcotic prescribed to manage severe pain. It contains oxycodone which if used in high doses can lead to respiratory distress and even death, particularly when used with alcohol. Oxycodone is an opioid, in the same family as heroin. Basically, medically prescribed heroin. Mollie and Ecstasy are synthetic drugs that makes a person prone to experiencing hallucinations and other psychological complications. These are other substances that if combined with alcohol could lead to severe medical distress.
So, the question is asked again; when did the use of these sort of substances become so acceptable. I had this conversation with a couple of colleagues and one traced the origins of this embrace to the Houston, TX based "Chopped and Screwed"movement of the early ‘90’s (a cross section between the Rootz and Treez eras). Chopped and screwed music became synonymous with the indulgence of “Lean” of “Syrup.” For the uninitiated, “lean/syrup” is a toxic and addictive mixture of prescription strength, codeine based cough syrup and soda. Codeine is also a narcotic that can lead to death when mixed with other mind altering substances. Even though there is a lot of validity to this assertion, I can’t say for sure this was the origin.
What I do know, however, if we the Hip Hop community to not take a stand and hold these artists accountable to the type of degradation they are promoting it will lead to the destruction of Hip Hop. Think about Future’s "Mask Off". A very catchy song but what’s disturbing is the first lyrics of this song pays some sought of blasphemous homage to pharmaceutical and synthetic drugs. Even more disturbing is the song that Mask Off was sampled from was Charlton William’s "Prison Song". The entire premise of William’s song was to be wary and aware of evil social elements leading to the decimation of the Black community. The song is found on the “Selma” album: A Musical Tribute to Martin Luther King, Jr. How does a song that pays tribute to a global icon like Dr. King became bastardized with the promotion Mollie and Percocet? Hip Hop, please be aware that there are elements in the world that want to destroy our culture. Unfortunately, it’s some of our own shepherding this poisonous behavior as if there will be no ramifications. To those artists, like Future, I say get your money Bro; it’s on you. But not at the cost of Hip Hop.
#ThisIsVital
#ReflectTheCulture
#RespectTheLineage
Friday, July 28, 2017
Saturday, July 22, 2017
Rakim Reacts To Jay Z’s 4:44
Everybody is talking about Jay Z's 4:44, even Rakim. I must say is was both enlightening and confirming to hear him speak directly from a perspective that we share at VitalGoundz and, Why We Did It!!! It is also is the reason why we addressed Hip Hop's need for an annual Senior Class. What reasons am I talking about? I can elaborate but I'm sure you'd much rather hear it from the God EmCee himself...
Friday, July 21, 2017
Wednesday, July 19, 2017
freecodecamp: Checking for Palindromes #js: #100daysofcode #vanillajs
#freecodecamp #javascript #loop #string
Goal: Return true if the given string is a #palindrome. Otherwise, return false.
A palindrome is a word or sentence that's spelled the same way both forward and backward, ignoring punctuation, case, and spacing.
You'll need to remove punctuation and turn everything lower case in order to check for palindromes.
We'll pass strings with varying formats, such as "racecar", "RaceCar", and "race CAR" among others.
How it got done: Using Reg Ex, all uppercase letter where replaced as lowercase letters. Then we check if the string is the same forward and backwards using split()
to separate the original string into indivdual characters, finally reversing it and then putting it back together again.
Friday, July 14, 2017
Subscribe to:
Posts (Atom)