This file contains 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
void main() { | |
for (int i = 1; i <= 100; i++) { | |
bool multiple_of_3 = i % 3 == 0; | |
bool multiple_of_5 = i % 5 == 0; | |
if (multiple_of_3 && multiple_of_5){ | |
print("Budvue should consider Jace for this position"); | |
} | |
else if (multiple_of_3){ | |
print("Bud"); | |
}else if (multiple_of_5){ |
This file contains 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
from django.contrib import admin | |
from .models import Example, ExampleFile , Example2 | |
class ExampleFileInline(admin.TabularInline): | |
model = ExampleFile | |
class Example2Admin(admin.ModelAdmin): |
This file contains 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
from time import strptime | |
import datetime | |
import base64 | |
#code works if the body contains a date stamp using the following format | |
# Sat, 7 Jul 2018 19:53:39 -0700 (PDT) | |
# example body I used started with following string | |
# Delivered-To: [email protected]\nReceived: by 2002:adf:885c:0:0:0:0:0 with SMTP id e28-v6csp1111454wre;\n Sat, 7 Jul 2018 19:53:39 -0700 (PDT) | |
def reverseFind(string, startingIndex, charToFind): |