monkeyraptor.johanpaul.net
Trepak Dance (Choreography by Alexander Kalinin)
http://monkeyraptor.johanpaul.net/2015/11/trepak-dance-choreography-by-alexander_4.html
Ramblin about techie-techie, comedy, guitar, and non boring things. Feeds — Atom (XML). Wednesday, November 4, 2015. Trepak Dance (Choreography by Alexander Kalinin). Trepak" is the short joyous moment in 2. Act in "The Nutcracker" ballet suite (premiere in 1892). The super awesome music was composed by Pyotr Ilyich Tchaikovsky. For the whole Nutcracker show. This dance (Trepak part) was originally based on Ukrainian folk dance, the Tropak. Well, I made up things. The whole production is neat. Tr in La 7D.
monkeyraptor.johanpaul.net
How to Find out Whether a Certain Month Has 31 or 30 Days
http://monkeyraptor.johanpaul.net/2016/09/how-to-find-out-whether-certain-month.html
Ramblin about techie-techie, comedy, guitar, and non boring things. Feeds — Atom (XML). Friday, September 2, 2016. How to Find out Whether a Certain Month Has 31 or 30 Days. Look at your knuckles. This is some sort of picture of back of clenched hand or something:. The pointy joint is always 31. And the space between knuckles is 30 (or 28/29 in February). Your knuckle - space sequence looks like this (starting from the last or first knuckle):. Go to other hand or start over) - space. As you'd notice on y...
monkeyraptor.johanpaul.net
Math: (Finite) Arithmetic Series Problem
http://monkeyraptor.johanpaul.net/2015/12/math-arithmetic-series.html
Ramblin about techie-techie, comedy, guitar, and non boring things. Feeds — Atom (XML). Wednesday, December 2, 2015. Math: (Finite) Arithmetic Series Problem. I found this interesting problem, well someone asked me, and I answered that on a whiteboard. But because I ran out of marker, I type the steps here. So that it will last longer. The problem goes like this (paraphrased):. The sum of first 10 members of an Arithmetic progression is 110. The sum of 11. Wut is the sum of the first and second members.
monkeyraptor.johanpaul.net
JavaScript: Trimming Leading-Trailing White Spaces
http://monkeyraptor.johanpaul.net/2016/01/javascript-trimming-leading-trailing.html
Ramblin about techie-techie, comedy, guitar, and non boring things. Feeds — Atom (XML). Sunday, January 3, 2016. JavaScript: Trimming Leading-Trailing White Spaces. Before we start, there's a post about replacing more than one white spaces. To only one horizontal space. To trim leading/trailing white spaces, on modern browser, we can use. Var the string = " this has many random "; the string = the string.trim(); / Now the string variable consists of "this has many random". Is to match the starting string.
monkeyraptor.johanpaul.net
JavaScript: How to Cancel Form Submit If the Input Value Is Blank
http://monkeyraptor.johanpaul.net/2016/04/javascript-how-to-cancel-form-submit-if.html
Ramblin about techie-techie, comedy, guitar, and non boring things. Feeds — Atom (XML). Sunday, April 3, 2016. JavaScript: How to Cancel Form Submit If the Input Value Is Blank. Hello there, let's start. You'll see two methods to do this:. There's a demo page here on Monkey Raptor as the result of the form submission, so that you know the method is valid. The page will only show you the query from the. Submit method from the. The basic structure of. Element to style it even further. Doesn't need to have.
monkeyraptor.johanpaul.net
Math: How many perfect squares are divisors of the product 1! • 2! • 3! • 4! • 5! • 6! • 7! • 8! • 9!?
http://monkeyraptor.johanpaul.net/2016/06/math-how-many-perfect-squares-are_29.html
Ramblin about techie-techie, comedy, guitar, and non boring things. Feeds — Atom (XML). Wednesday, June 29, 2016. Math: How many perfect squares are divisors of the product 1! This is from 2003 AMC (American Mathematics Competitions). The problem looks like this:. How many perfect squares are divisors of the product 1! A) 504 (B) 672 (C) 864 (D) 936 (E) 1008. The exclamation after the number means factorial. For instance, 3! 1 • 2 • 3 = 6. Let's break the sequence. Seriously, it looks like that. For numb...
monkeyraptor.johanpaul.net
JavaScript (and Python): Mapping Array/List of Numbers to Strings and the Other Way Round
http://monkeyraptor.johanpaul.net/2016/03/javascript-and-python-mapping-arraylist.html
Ramblin about techie-techie, comedy, guitar, and non boring things. Feeds — Atom (XML). Friday, March 11, 2016. JavaScript (and Python): Mapping Array/List of Numbers to Strings and the Other Way Round. 1 List of Numbers to List of Strings. For example, we have this object:. In JavaScript, it's called. And in Python it's a. And for some reason, we need to convert every member into. As you can see above, every member is a number (integer). We can use the new method. Can also do the task. To see its content.
monkeyraptor.johanpaul.net
Python: Methods Comparison to Reverse a List Object
http://monkeyraptor.johanpaul.net/2016/09/python-methods-comparison-to-reverse.html
Ramblin about techie-techie, comedy, guitar, and non boring things. Feeds — Atom (XML). Thursday, September 22, 2016. Python: Methods Comparison to Reverse a List Object. There are many ways in Python to reverse items sequence of an iterable object. Uh, anyway, this is on Python 2.7. For example, we have this list to be reversed:. A = ["A", "B", "C", "D", "R", "Y", 25, 971235]. Reversed list = list reference[: -1]. Reversed list = list(reversed(list reference). Reversed list = list(list reference). Varia...
monkeyraptor.johanpaul.net
Dev and Demo
http://monkeyraptor.johanpaul.net/2016/11/dev-and-demo.html
Ramblin about techie-techie, comedy, guitar, and non boring things. Feeds — Atom (XML). Thursday, November 24, 2016. These two contractions remind me of something. As used in the root word, develop. Like in demonstrate and all the derivations. Ya know, those entities. And oh, the word "entity". And many moar. For instance, "cursor". And whoa dude so many. Here's an old fancy statement from someone. And another one. This was an excerpt from an interview with Noam Chomsky. Interviewed by David Barsamian).
monkeyraptor.johanpaul.net
Python: How to Split String with Empty Separator
http://monkeyraptor.johanpaul.net/2016/12/python-how-to-split-string-with-empty.html
Ramblin about techie-techie, comedy, guitar, and non boring things. Feeds — Atom (XML). Sunday, December 4, 2016. Python: How to Split String with Empty Separator. First of all, this is on Python 2 point something something. For instance, we have this string:. A = "This string". With an empty string. B = asplit(" ). Traceback (most recent call last): File ". Line , in. We can directly use empty separator. Like so:. Asplit(" ); ["T", "h", "i", "s", " ", "s", "t", "r", "i", "n", "g"] / output. Tr in La 7D.