Skip to content

Instantly share code, notes, and snippets.

use std::io::{self, Write};
use std::process::{Command, Output, ExitStatus};
fn main() -> io::Result<()> {
let mut shell = Shell::new();
shell.spawn()
}
struct Shell {
input_history: Vec<String>,
use std::io::{self, Write};
use std::process::{Command, Output, ExitStatus};
fn main() -> io::Result<()> {
let mut shell = Shell::new();
shell.spawn()
}
struct Shell {
input_history: Vec<String>,
use std::io::{self, Write};
use std::process::{Command, Output, ExitStatus};
fn main() -> io::Result<()> {
let mut shell = Shell::new();
shell.spawn()
}
struct Shell {
input_history: Vec<String>,
import debounce from 'lodash/debounce';
function adjustCalendarIfNecessary() {
const datepicker = document.querySelector('#calendar-container');
const datepickerRect = datepicker.getBoundingClientRect();
// Button you're positioning the calendar container off of
const button = document.querySelector('#that-button');
const buttonRect = button.getBoundingClientRect();
'.platform-linux atom-text-editor, .platform-linux':
'ctrl-t': 'advanced-open-file:toggle'
'ctrl-alt-l': 'latex:build'
'ctrl-alt-b': 'atom-beautify:beautify-editor'
'ctrl-alt-c': 'color-picker:open'
'ctrl-alt-x': 'script:run'
'ctrl-alt-r': 'symbols-view:toggle-file-symbols'
'ctrl-alt-d': 'split-diff:toggle'
'ctrl-alt-shift-R': 'symbols-view:toggle-project-symbols'
'ctrl-?': 'minimap:toggle'

If you already have your .env.json file created, these steps should get you up and running using now.

  1. npm install -g now
  2. git clone https://github.com/jacobmischka/ics-merger.git
  3. cp .env.json ics-merger
  4. cd ics-merger
  5. npm run deploy

You should have a url copied to your clipboard (if not, check the console output for it), paste that into your browser to see your running instance.

<div>
<p>
{{ user.full_name }}
</p>
<div>
<ol>
<li v-for="pairing of overlap.pairings">
<div class="row">
<div class="col-sm-6">
<span>
int skip = 0;
int position = 0;
int length;
for (int i = 0; i < NUM_ROUNDS; i++) {
for (iter = lengths.begin(); iter != lengths.end(); iter++) {
length = *iter;
reverse(list, LIST_SIZE, position, position + length - 1);

Input string: 1,2,3

Lengths after parsing and adding 5 elements: [ 49, 44, 50, 44, 51, 17, 31, 73, 47, 23 ]

List after 64 loops:

[
  5, 11, 95, 62, 101, 8, 254, 63, 51, 197, 155, 31, 164, 190, 147, 6, 171, 98, 19, 20, 75, 159, 194, 207, 249, 91, 225, 78, 145, 230, 118, 224, 83, 87, 58, 244, 124, 241, 131, 201, 7, 114, 240, 204, 66, 47, 50, 252, 203, 213, 137, 127, 44, 165, 104, 234, 18, 25, 116, 173, 121, 209, 153, 138, 239, 13, 55, 157, 70, 189, 89, 196, 136, 243, 237, 210, 250, 246, 208, 59, 211, 215, 80, 40, 72, 135, 32, 54, 61, 21, 16, 238, 38, 77, 34, 184, 28, 160, 15, 181, 228, 103, 81, 229, 96, 37, 12, 217, 221, 36, 65, 235, 123, 109, 175, 187, 199, 198, 57, 113, 64, 0, 185, 1, 166, 152, 233, 253, 119, 67, 43, 143, 86, 191, 227, 149, 126, 105, 76, 146, 242, 120, 169, 156, 216, 162, 24, 219, 193, 129, 94, 48, 49, 10, 35, 82, 79, 174, 41, 22, 202, 108, 30, 115, 150, 154, 17, 88, 60, 26, 205, 148, 179, 128, 245, 45, 251, 142, 74, 102, 206, 182, 100, 3, 106, 56, 23, 99, 90, 222, 2, 172, 73, 158