Skip to content

Instantly share code, notes, and snippets.

View GermanHoyos's full-sized avatar
😋
Coding!

German Adrian Hoyos GermanHoyos

😋
Coding!
View GitHub Profile
@adimancv
adimancv / css_dark_mode_gist_embed_code.css
Last active August 13, 2024 19:25
CSS Dark Mode Gist Embed Code
/*!
* Gist DarkCode ver 0.2.1
* Update 03/12/2021 www.adiman.web.id
*/
.gist{font-size: 18px}.gist-meta, .gist-file, .octotree_toggle, ul.comparison-list > li.title,button.button, a.button, span.button, button.minibutton, a.minibutton,span.minibutton, .clone-url-button > .clone-url-link{background: linear-gradient(#202020, #181818) !important;border-color: #383838 !important;border-radius: 0 0 3px 3px !important;text-shadow: none !important;color: #b5b5b5 !important}.markdown-format pre, .markdown-body pre, .markdown-format .highlight pre,.markdown-body .highlight pre, body.blog pre, #facebox pre, .blob-expanded,.terminal, .copyable-terminal, #notebook .input_area, .blob-code-context,.markdown-format code, body.blog pre > code, .api pre, .api code,.CodeMirror,.highlight{background-color: #1D1F21!important;color: #C5C8C6!important}.gist .blob-code{padding: 1px 10px !important;text-align: left;background: #000;border: 0}::selection{background: #24890d;color: #fff;text-shadow: none}::-moz-selection{background:
@PamBWillenz
PamBWillenz / Each With Index
Last active March 4, 2018 00:04
Loops - Bloc Checkpoint
INSTRUCTIONS
[2,4,6].each_with_index do |element, index|
p "#{element} is at position #{index}"
end
Write a method, add_value_and_index, that takes an array of numbers and returns a new array composed of the value-plus-the-index of each element in the argument array:
add_value_and_index([2,4,6])
#=> 2,5,8
SPECS