Instantly share code, notes, and snippets.

View playground.rs
mod world {
//this data is communicated between the three subprograms
#[derive(Clone, Copy)]
pub struct Transform {
pub x: f64,
pub y: f64,
pub angle: f64,
}
type EntityId = usize;
//update, starting point of Pipeline
View 1swap.java
package com.test.barclays;
public class Solution1_1swap_inreasing_order_array {
public boolean solution(int[] A) {
int temp = 0, swapCount = 0;
boolean result = true;
for (int i = 0; i < A.length - 1; i++) {
if (A[i] <= A[i + 1]) {
continue;
} else {
View cloud-config.ovirt.yml
#cloud-config
# assumes virtio
# replace and uncomment ssh_authorized_keys with your pubkey(s)
#ssh_authorized_keys:
# - ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDWFPEou1/OK86UK1hB2YrFOpdhB30mcYFF3qwRcoGezmGyZxbKHTGs2DvJCeIHe1K7INjzpkwPqzXsKAKMnkdgDqHya8iEvblDl/DVDnnvLD3GDzH/0XboV5glvJcGMtmqbsZl0jMsWjTX/1oRiIpE6wU2AFTSDVAHWKMlJS+EoTZUpe6MHp5LXny/kSqGVGTwJNDIB2TevmCFGPTUDUyEd5q8h1jQQdz1Sv2yrVFG3SxaZiwqea3eRd4qz7H86PzZN9BSDERvuS6f62VzR1stbHIHohw53U2POoXKV/YBGdYsYNdg565yCfgCgKSp1bwQtF7kzI8RDiVVBeSutuBP sean@Malone-Tuning-26
rancher:
# extend /dev/vda to the entire disk, if necessary
resize_device: /dev/vda
state:
View backuplog.txt
dir found
_+=------------------------------------=+_
Starting Backup: 2018-10-11T160001
Sending save-all command to tmux session
Running backup as user[ minecraft ] on server [ ancienttowncraft ] ...
No space left on device, cleaning up partial transaction to free space.
Local Exception
Traceback (most recent call last):
File "borg/archiver.py", line 3983, in main
File "borg/archiver.py", line 3911, in run
View mutitpleUsers.swift
for collaborator in theme.collaborators ?? [] {
let profilePicture = UIImageView(frame: CGRect(origin: CGPoint(x: origin, y: DesignConstants.headerInsets.top), size: DesignConstants.userImageSize))
profilePicture.layer.cornerRadius = DesignConstants.userImageSize.width / 2
profilePicture.layer.masksToBounds = true
profilePicture.layer.borderColor = UIColor.white.cgColor
profilePicture.layer.borderWidth = 2
profilePicture.backgroundColor = .placeholderGray
profilePicture.image = UIImage(named: "profile-icon")
origin += DesignConstants.userImageSize.width - gap
View sistemaVentas_.editorconfig
root = true
[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 4
trim_trailing_whitespace = true
View HireArt_spreadsheet_analysis.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View .txt
31pRjontoFeCYyHWHE6VYiZDdN3ATaHqfQ
View ahmad-awais.md
→ I am a Full Stack Web Developer — well versed with JavaScript (MERN/MEAN), PHP (LAMP/LEMP), JAM (JavaScript API Markup) stacks
→ I am also a full-time #OpenSourcerer 🎩— which means knowledge of open sourcing, collaboration, Git, GitHub, etc
→ I love working with developers in Developer Relations as a Developer Advocate — passionate about Dev-Tooling, Dev-Experience, etc
→ I have a degree in Electrical Engineering, I love Emoji 💜 and sometimes crack terrible jokes 🤣
→ I’ve been blogging for over 15 years — writing content is a skill which has led me to become somewhat a thought-leader in JavaScript/WordPress space
→ I spent 12 years with WordPress — Core Dev, Core JS Team, Contributor to Customizer, WooCommerce, EDD, Default Themes, WP REST API, Gutenberg, etc

FMfcgxvzKtZxclGLZcwTrfBQshFbhCJG

View playground.rs
#[derive(Debug)]
//This one needs type annotations...
struct ReferenceContainingStruct<'a>{
a_reference: &'a str,
}
#[derive(Debug)]
//to force this one to need type annotations, so you don't have hidden owned structs containing references
struct Top<'a>{
ref_thing: ReferenceContainingStruct<'a>,