Skip to content

Instantly share code, notes, and snippets.

View FrozenIce0617's full-sized avatar
🏡
Working from home

SuccessTracker FrozenIce0617

🏡
Working from home
View GitHub Profile
const groupArrayElements = ((arr, divideCnt) => {
const res = [];
const arraySize = arr.length;
const increment = Math.ceil(arraySize / divideCnt);
for (let i = 0; i < arraySize; i += increment) {
res.push(arr.slice(i, i + increment));
}
return res;
const groupArrayElements = (arr, N) => {
const res = [];
const rem = arr.length % N;
const cnt = parseInt(arr.length / N);
let temp = [];
let groupCnt = 0;
let groupPos = 0;
arr.forEach((element) => {
@FrozenIce0617
FrozenIce0617 / ARC TEST - 1st
Last active August 28, 2020 18:31
Arc Short Quiz (React)
let React = require('react');
// TODO: Create the Notification Component
const map = {
success: 'success',
message: 'info',
caution: 'warning',
error: 'danger'
};
@FrozenIce0617
FrozenIce0617 / GitCommitEmoji.md
Created September 30, 2019 13:06 — forked from parmentf/GitCommitEmoji.md
Git Commit message Emoji
=Navigating=
visit('/projects')
visit(post_comments_path(post))
=Clicking links and buttons=
click_link('id-of-link')
click_link('Link Text')
click_button('Save')
click('Link Text') # Click either a link or a button
click('Button Value')