git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
import UIKit | |
extension UITextView: UITextViewDelegate { | |
override open var bounds: CGRect { | |
didSet { | |
self.resizePlaceholder() | |
} | |
} | |
public var placeholder: String? { |
<a data-method="delete" href="<%= destroy_user_session_path %>"> | |
<i class="fa fa-sign-out" aria-hidden="true"></i><span class="hidden-xs hidden-sm">Exit</span> | |
</a> | |
<!-- | |
user signout with devise. That's equivalent to <%= link_to('Exit', destroy_user_session_path, method: :delete) %> | |
--> |
function rails() { | |
if [ "$1" = "start" ]; then | |
if [ "$2" = "" ]; then | |
RENV="production" | |
else | |
RENV="$2" | |
fi | |
rails server -p 80 -b 0.0.0.0 -d -e "$RENV" | |
return 0 | |
elif [ "$1" = "stop" ]; then |
ActiveAdmin.register App do | |
ActionController::Parameters.permit_all_parameters = true | |
menu priority: 6, label: "Uygulamalar" | |
index do | |
selectable_column | |
excluded = ["app_image","updated_at","domain_id"] | |
(App.column_names - excluded).each do |c| | |
column c.to_sym | |
end |
func fetchResultsFromApi() { | |
struct MyGitHub: Codable { | |
let name: String? | |
let location: String? | |
let followers: Int? | |
let avatarUrl: URL? | |
let repos: Int? | |
private enum CodingKeys: String, CodingKey { |
<select id="domain" name="domain_name" class="form-group form-control"> | |
<option id="first_domain" value="" selected disabled>Alan Adı</option> | |
<option>Deneme Değeri</option> | |
<option>Sample Value</option> | |
<option>Third Sample Value</option> | |
</select> | |
<script> | |
$('#domain').change(function () { |
git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
ActiveAdmin.register Company do | |
permit_params :user_id, :name ## Add this line | |
form do |f| | |
f.inputs "Admin Details" do | |
f.input :user_id, as: :select, collection: User.all.map { |a| [a.email, a.id] } | |
f.input :name | |
f.actions |
require 'rufus-scheduler' | |
require 'uri' | |
require 'net/http' | |
require 'openssl' | |
require 'json' | |
def getir | |
url = URI("https://koineks.com/ticker") | |
http = Net::HTTP.new(url.host, url.port) |