Skip to content

Instantly share code, notes, and snippets.

View dasmido's full-sized avatar
🐞
Let's Code Today

Mohammed A. dasmido

🐞
Let's Code Today
View GitHub Profile
@dasmido
dasmido / .env.DEV.enc
Created February 27, 2022 08:21 — forked from psenger/.env.DEV.enc
[OpenSSL Encrypted Environment Variables] #OpenSSL #TravisCi #CodeShip #AWS #Docker #Swarm
U2FsdGVkX18bL0goCbiTjHFGnkwWagZSYjhvkaU1hXA=
@dasmido
dasmido / example.yml
Created July 10, 2021 15:26 — forked from cecilemuller/example.yml
Run Docker Compose + in Github Action
name: Test
on:
push:
branches:
- main
- features/**
- dependabot/**
pull_request:
branches:
import unittest
def luhn_checksum(card_number):
def digits_of(n):
return [int(d) for d in str(n)]
digits = digits_of(card_number)
odd_digits = digits[-1::-2]
@dasmido
dasmido / rot.py
Last active March 31, 2020 20:43
########################################################################
# Tester : Mohammed Jamal Hadi #
# Program : Republic of Testers #
# Submission date : 01-APRIL-2019 SATURDAY 16:00 #
# License : Educational Purpose, ELTE IK, Spring 2019 #
# #
# Declaration : This Solution was submitted and prepared by #
# Mohammed Jamal Hadi , neptun-TBRUEJ #
# for the Republic of Testers assignment #
# of the Software and Quality testing course spring 2019. #
@dasmido
dasmido / application.properties
Created March 19, 2019 23:12
Heroku PostgreSQL connection spring boot
# ===============================
# = DATA SOURCE
# ===============================
# Set here configurations for the database connection
# =============== Heroku PostgreSQL Database =====================
#spring.datasource.url=jdbc:postgresql://ec2-54-75-230-41.eu-west-1.compute.amazonaws.com:5432/dbqup43qrkl1gn?sslmode=require
#spring.datasource.username=ntfvvinbaynbmm
@dasmido
dasmido / MainVC.swift
Created March 21, 2018 13:00
NewsApp-JSON-MainVC
//
// MainVC.swift
// AlamofireJSON
//
// Created by Mohammed Jamal on 3/21/18.
// Copyright © 2018 Mohammed Jamal. All rights reserved.
//
import UIKit
import Alamofire
@dasmido
dasmido / Article.swift
Created March 21, 2018 12:15
NewsApi-Model-Article
//
// Article.swift
// AlamofireJSON
//
// Created by Mohammed Jamal on 3/21/18.
// Copyright © 2018 Mohammed Jamal. All rights reserved.
//
import UIKit
import Alamofire
@dasmido
dasmido / Constants.swift
Created March 21, 2018 12:14
NewsApi-JSON
//
// Constants.swift
// AlamofireJSON
//
// Created by Mohammed Jamal on 3/21/18.
// Copyright © 2018 Mohammed Jamal. All rights reserved.
//
import Foundation
@dasmido
dasmido / newsApi-Article.swift
Created March 21, 2018 12:06
newsApi-Article.swift
//
// Article.swift
// AlamofireJSON
//
// Created by Mohammed Jamal on 3/21/18.
// Copyright © 2018 Mohammed Jamal. All rights reserved.
//
import UIKit
import Alamofire
<div *ngIf="user">
<h2 class="page-header">{{user.name}}</h2>
<ul class="list-group">
<li class="list-group-item">Username: {{user.username}}</li>
<li class="list-group-item">Email: {{user.email}}</li>
</ul>
</div>