Skip to content

Instantly share code, notes, and snippets.

View MCurran16's full-sized avatar
💭
Working on something cool

Luke Curran MCurran16

💭
Working on something cool
  • Canary Technologies
  • Kansas City, MO
View GitHub Profile
@MCurran16
MCurran16 / NSString+ShiftCipher.m
Created June 15, 2021 18:35
Ceasar Cipher only accounts for letters. In this shift cipher, I shift all characters by a certain <shift> int
// Shift all characters by a certain <shift> int
-(NSString*) asciiShift:(int)shift {
if ([self length] == 0) {
return nil;
}
// no shift, return unencrypted string
if (shift == 0) {
return self;
}
@MCurran16
MCurran16 / gist:b85ae3cd27df8e36cc0178f852716449
Created February 20, 2021 16:52
Generate JWT secret from terminal
node -e "console.log(require('crypto').randomBytes(256).toString('base64'));"
@MCurran16
MCurran16 / CssConvention
Last active February 14, 2019 17:44
Css Convention Order
CSS Convention Order
float
position
top
right
bottom
left
width
height