Skip to content

Instantly share code, notes, and snippets.

View Coder-ACJHP's full-sized avatar
:bowtie:
Creating buggy programs

Onur Işık Coder-ACJHP

:bowtie:
Creating buggy programs
View GitHub Profile
@Coder-ACJHP
Coder-ACJHP / ErrorMessage.java
Last active January 13, 2023 19:18
How to use Bootstrap Modal login form with Spring MVC (included form validation) & Ajax.
public class ErrorMessage {
private String fieldName;
private String message;
public ErrorMessage(String fieldName, String message) {
this.fieldName = fieldName;
this.message = message;
}
@Coder-ACJHP
Coder-ACJHP / Index.html
Last active March 21, 2018 12:57
Colorful, shadow effected web calculator
<html>
<head>
<meta charset="UTF-8">
<link type="text/css" rel="stylesheet" href="../CSS/calc-style.css">
<script type="text/javascript" src="../JAVASCRIPT/calc-script.js"></script>
<title>Coder Calculator</title>
</head>
<body>
<div class="row">
<p>Calculator<small> made by </small><label>Coder ACJHP</label></p>
@Coder-ACJHP
Coder-ACJHP / login.html
Last active March 22, 2018 12:44
Awesome flat design login page included basic validation
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="style.css">
<title>Login page</title>
</head>
<body>
<section>
<form action="" class="container" id="login-form">
@Coder-ACJHP
Coder-ACJHP / DateHelper.swift
Last active August 2, 2018 06:36
Date extension that help us to get day of week, day number of week, date list as date etc.. (between two dates)
// DateHelper.swift
//
// Created by Coder ACJHP on 2.08.2018.
// Copyright © 2018 Coder ACJHP. All rights reserved.
//
import Foundation
extension Date {
@Coder-ACJHP
Coder-ACJHP / DrawRectCornersAndDashedBorder.swift
Created December 17, 2018 18:39
Drawing frame corners and dashed border on view, and drag, scale, rotate the view with gesture recognizers.
//
// SecondViewController.swift
// DrawLines
//
// Created by Onur Işık on 17.12.2018.
// Copyright © 2018 Onur Işık. All rights reserved.
//
import UIKit
@Coder-ACJHP
Coder-ACJHP / CachableImageView.swift
Created December 19, 2018 11:17
Modified image view that can cache and download images, first it will try fetch the image from cache if couldn't found it will download from the given url
//
// CachableImageView.swift
// Test
//
// Created by Coder ACJHP on 26.10.2018.
// Copyright © 2018 Coder ACJHP. All rights reserved.
//
import UIKit
@Coder-ACJHP
Coder-ACJHP / CCVerticalSlider.swift
Created February 5, 2019 00:01
Designable from storyboard, reusable vertical slider
import UIKit
protocol VerticalSliderDelegate: class {
func sliderValueIsChanged(_ verticalSlider: CCVerticalSlider, value: CGFloat)
}
@IBDesignable open class CCVerticalSlider: UIView {
let shapeLayer = CAShapeLayer()
@Coder-ACJHP
Coder-ACJHP / CGifManager.swift
Last active April 1, 2022 07:55
Gif splitter or frame extractor for IOS written by Swift 4
/*
MIT License
Copyright (c) 2018 toddheasley
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
@Coder-ACJHP
Coder-ACJHP / ShareImageOnSocialMedia.swift
Created March 7, 2019 08:05
Example code for "how to share image on Facebook, Instagram, Whatsapp and Activity" with Swift 4+
/* Common steps to use these codes */
// 1- you need to implement FBSharekit for sharing on Facebook
// 2- Copy and Paste the following text to your "info.plist" (anywhere)
/*
<key>FacebookAppID</key>
<string>08760425023140553</string> //This is a mock id, you must add your own real app id else it never will work
<key>FacebookDisplayName</key>
<string>DoYourBest</string> //Add your real app name here
<key>LSApplicationQueriesSchemes</key>