-
CTRL + A— Move to the beginning of the line -
CTRL + E— Move to the end of the line -
CTRL + [left arrow]— Move one word backward (on some systems this is ALT + B) -
CTRL + [right arrow]— Move one word forward (on some systems this is ALT + F) -
CTRL + U— (bash) Clear the characters on the line before the current cursor position -
CTRL + U—(zsh) If you're using the zsh, this will clear the entire line -
CTRL + K— Clear the characters on the line after the current cursor position -
ESC + [backspace]— Delete the word in front of the cursor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| openapi: 3.1.0 | |
| info: | |
| title: Shopify Bridge Batch Ingestion API | |
| version: 0.1.1 | |
| description: | | |
| REST API for batch ingestion of e-commerce products, POS products, inventory, and price, promotion codes, shipping promotions and associated data (ex: flags) into the Follett Shopify Bridge system. | |
| This API provides an alternative to file-based ingestion, enabling programmatic data submission | |
| with per-entry error tracking and job status monitoring. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # section :: [a] -> [Int] -> [[a]] | |
| section = lambda { |arr:, lengths:| | |
| starts = [*0..lengths.size - 1].reduce([]) do |acc, idx| | |
| acc << lengths.take(idx).sum; acc | |
| end | |
| starts.zip(lengths).map { |start, lenght| arr.slice(start, lenght) } | |
| } | |
| arr = [*1..100] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEASABIAAD/4VsqRXhpZgAATU0AKgAAAAgAFgEPAAIAAAAGAAABFgEQAAIAAAAMAAABHAESAAMAAAABAAEAAAEaAAUAAAABAAABKAEbAAUAAAABAAABMAEoAAMAAAABAAIAAAEyAAIAAAAUAAABOAE7AAIAAAABAAAAAAITAAMAAAABAAIAAIKYAAIAAAABAAAAAIdpAAQAAAABAAABTIglAAQAAAABAAA5uIgwAAMAAAABAAIAAIgyAAQAAAABAAAGQJAQAAIAAAAHAAA5zJARAAIAAAAHAAA51JASAAIAAAAHAAA53KQwAAIAAAABAAAAAKQxAAIAAAANAAA55KQyAAUAAAAEAAA58qQ0AAIAAAAcAAA6EqQ1AAIAAAALAAA6LgAAOjpDYW5vbgBDYW5vbiBFT1MgUgAAAABIAAAAAQAAAEgAAAABMjAxODowNDoyMiAwNzo1NzoxMAAAIIKaAAUAAAABAAAC0oKdAAUAAAABAAAC2ogiAAMAAAABAAIAAIgnAAMAAAABBkAAAJAAAAcAAAAEMDIzMZADAAIAAAAUAAAC4pAEAAIAAAAUAAAC9pEBAAcAAAAEAQIDAJIBAAoAAAABAAADCpICAAUAAAABAAADEpIEAAoAAAABAAADGpIHAAMAAAABAAUAAJIJAAMAAAABAAAAAJIKAAUAAAABAAADIpJ8AAcAADVWAAADKpKGAAcAAAEIAAA4gJKQAAIAAAADNzMAAJKRAAIAAAADNzMAAJKSAAIAAAADNzMAAKAAAAcAAAAEMDEwMKABAAMAAAABAAEAAKACAAMAAAABDSAAAKADAAMAAAABCMAAAKAFAAQAAAABAAA5iKIOAAUAAAABAAA5qKIPAAUAAAABAAA5sKIQAAMAAAABAAIAAKQBAAMAAAABAAAAAKQCAAMAAAABAAAAAKQDAAMAAAABAAAAAKQGAAMAAAABAAAAAOodAAkAAAABAAAAAAAAA |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Factorial | |
| # Keep in mind we want to remove assignment. | |
| ZERO = ->(_) { ->(x) { x } } | |
| # ONE = ->(f) { ->(x) { f[x] } } | |
| TWO = ->(f) { ->(x) { f[f[x]] } } | |
| THREE = ->(f) { ->(x) { f[f[f[x]]] } } | |
| ADD0 = ->(n) { ->(f) { ->(x) { n[f][x] } } } | |
| SUCC = ->(n) { ->(f) { ->(x) { f[n[f][x]] } } } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using Microsoft.AspNetCore.Mvc; | |
| using Twilio.TwiML; | |
| using ValidateRequestExample.Filters; | |
| namespace ValidateRequestExample.Controllers | |
| { | |
| public class IncomingController : Controller | |
| { | |
| [ValidateTwilioRequest] | |
| [Produces("text/xml")] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System.Net.Http; | |
| using System.Text; | |
| using System.Web.Http; | |
| using Twilio.TwiML; | |
| using ValidateRequestExample.Filters; | |
| namespace ValidateRequestExample.Controllers | |
| { | |
| public class TwilioMessagingRequest | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import System.Directory | |
| import System.Environment | |
| import System.IO | |
| import Control.Monad | |
| import Data.List | |
| dispatch :: [(String, [String] -> IO ())] | |
| dispatch = [ ("add", add) | |
| , ("view", view) | |
| , ("remove", remove) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| " Quickly toggle between relative and no relative line numbers | |
| function! NumberToggle() | |
| if(&relativenumber == 1) | |
| set norelativenumber | |
| else | |
| set relativenumber | |
| endif | |
| endfunc | |
| nnoremap <C-L> :call NumberToggle()<CR> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| echo -e "\033[0mCOLOR_NC (NO COLOR)" | |
| echo -e "\033[1;37mCOLOR_WHITE\t\033[0;30mCOLOR_BLACK" | |
| echo -e "\033[0;34mCOLOR_BLUE\t\033[1;34mCOLOR_LIGHT_BLUE" | |
| echo -e "\033[0;32mCOLOR_GREEN\t\033[1;32mCOLOR_LIGHT_GREEN" | |
| echo -e "\033[0;36mCOLOR_CYAN\t\033[1;36mCOLOR_LIGHT_CYAN" | |
| echo -e "\033[0;31mCOLOR_RED\t\033[1;31mCOLOR_LIGHT_RED" | |
| echo -e "\033[0;35mCOLOR_PURPLE\t\033[1;35mCOLOR_LIGHT_PURPLE" | |
| echo -e "\033[0;33mCOLOR_YELLOW\t\033[1;33mCOLOR_LIGHT_YELLOW" |
NewerOlder