What do you want to save?
Add Code snippet
New code examples
-
Ruby 2022-02-11 01:30:01
string concatenation in Ruby
#lets get 2 strings from user first first_name = gets last_name = gets #Now concatentate the strings first_name.concat(last_name) =begin Other ways for concatenating string: last_name.prepend(first_name) first_name<<last_name first_name+=last_n... Add solution -
C# 2022-01-23 05:51:07
unity dotween sequence
// Grab a free Sequence to use Sequence mySequence = DOTween.Sequence(); // Add a movement tween at the beginning mySequence.Append(transform.DOMoveX(45, 1)); // Add a rotation tween as soon as the previous one is finished mySequence.Append(transform.DORo... Add solution -
Javascript 2021-12-23 16:07:10
append to top javascript
$('div').prepend('<p>Bla bla bla'); Add solution -
Javascript 2021-11-21 14:40:31
code to convert rgb to hsl color
// see: https://en.wikipedia.org/wiki/RGB_color_model // see: https://en.wikipedia.org/wiki/HSL_and_HSV // expects R, G, B, Cmax and chroma to be in number interval [0, 1] // returns undefined if chroma is 0, or a number interval [0, 360] degrees functio... Add solution -
Other 2021-11-20 09:54:57
input button group
<div class="input-group mb-3"> <div class="input-group-prepend"> <button class="btn btn-outline-secondary" type="button"><i class="fa fa-right-arrow"></i></button>... Add solution -
Javascript 2021-11-17 00:37:22
javascript select2 sortable
//CSS Must Include CSS .sortable { list-style-type: none; } .select2-selection__rendered li.placeholder { width: 0; height: 0; border-bottom: 5px solid transparent !important; border-top: 5px solid green !important; border-left... Add solution -
TypeScript 2021-11-11 11:53:20
typescript type number range
type PrependNextNum<A extends Array<unknown>> = A['length'] extends infer T ? ((t: T, ...a: A) => void) extends ((...x: infer X) => void) ? X : never : never; type EnumerateInternal<A extends Array<unknown>, N extends number>... Add solution
Best helpers
Ranking is empty