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
package com.musicalcoder.inspireme.network; | |
import com.musicalcoder.inspireme.model.User; | |
import com.musicalcoder.inspireme.model.UserResponse; | |
import retrofit2.Call; | |
import retrofit2.http.Body; | |
import retrofit2.http.POST; | |
public interface Service { |
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
def test_letter_to_numeral_convertion(plain_text=None): | |
for i, letter in enumerate(plain_text): | |
if i < len(plain_text): | |
numeral = ord(letter) - 96 | |
print(i, numeral) | |
test_letter_to_numeral_convertion(plain_text="Lenny") |
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
package com.kelynnjeri.memories; | |
import android.content.ContentResolver; | |
import android.content.Intent; | |
import android.net.Uri; | |
import android.os.Bundle; | |
import com.google.android.gms.tasks.OnFailureListener; | |
import com.google.android.gms.tasks.OnSuccessListener; | |
import com.google.android.material.floatingactionbutton.FloatingActionButton; |
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
package com.kelynnjeri.memories; | |
import android.content.Context; | |
import android.view.LayoutInflater; | |
import android.view.View; | |
import android.view.ViewGroup; | |
import android.widget.ImageView; | |
import androidx.annotation.NonNull; | |
import androidx.recyclerview.widget.RecyclerView; |
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
package com.kelynnjeri.memories; | |
/** | |
* Created by Kelyn Njeri on 7/1/19. | |
**/ | |
public class Uploads { | |
String imageUrl; | |
public Uploads() { | |
//Empty Constructor. |
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
package com.example.alc4phase1; | |
import android.content.DialogInterface; | |
import android.content.Intent; | |
import android.net.Uri; | |
import android.support.v7.app.AppCompatActivity; | |
import android.os.Bundle; | |
import android.view.View; | |
import android.widget.Button; |
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 python:3 | |
ENV PYTHONUNBUFFERED 1 | |
RUN mkdir /code | |
WORKDIR /code | |
COPY requirements.txt /code/ | |
RUN pip install -r requirements.txt | |
COPY . /code/ |
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
version: '2' | |
services: | |
db: | |
image: postgres | |
environment: | |
- POSTGRES_DB=postgres | |
- POSTGRES_USER=postgres | |
- POSTGRES_PASSWORD=postgres | |
web: |
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
DATABASES = { | |
'default': { | |
'ENGINE': 'django.db.backends.postgresql', | |
'NAME': 'postgres', | |
'USER': 'postgres', | |
'PASSWORD': 'postgres', | |
'HOST': 'db', | |
'PORT': 5432, | |
} | |
} |
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
class User < ApplicationRecord | |
has_secure_password | |
has_many :created_events, foreign_key: :creator_id, class_name: 'Event' | |
has_many :user_events, foreign_key: :attendee_id | |
has_many :events_attended, through: :user_events, dependent: :delete_all, source: :event_attended | |
end |
OlderNewer