Skip to content

Instantly share code, notes, and snippets.

View modestfake's full-sized avatar

Vitalii Saienko modestfake

View GitHub Profile
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "attach",
"name": "Attach to master",
"port": 5858,
"skipFiles": [
"node_modules/**/*.js",
@modestfake
modestfake / Algorithms.js
Last active December 29, 2018 00:10
Reverse words in sentences
const str = 'I love Tamagochi'
const input = str.split('')
function reverseWords (input) {
const length = input.length
let offset = 0
let lastSpaceIndex = 0
do {
lastSpaceIndex = input.indexOf(' ', offset)
@modestfake
modestfake / cloudSettings
Last active April 5, 2021 17:44
Visual Studio Code Settings Sync Gist
{"lastUpload":"2021-04-05T17:44:25.724Z","extensionVersion":"v3.4.3"}
@modestfake
modestfake / bom_check.php
Created January 13, 2017 14:54 — forked from jdlx/bom_check.php
PHP script to recursively check php files for BOM (ByteOrderMark)
<?php
/**
* @author Atanas Vasilev
* @link http://pastebin.com/dHbqjUNy
* @see http://www.dotvoid.com/2010/04/detecting-utf-bom-byte-order-mark/
* @version 1.1
*/
// SETTINGS