Skip to content

Instantly share code, notes, and snippets.

@modernNeo
modernNeo / dartpad
Last active June 18, 2021 01:15
Dartpad code
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){
@modernNeo
modernNeo / admin,py
Created December 16, 2018 20:04
files for file form
from django.contrib import admin
from .models import Example, ExampleFile , Example2
class ExampleFileInline(admin.TabularInline):
model = ExampleFile
class Example2Admin(admin.ModelAdmin):
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):