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
<?php echo $this->form->getLabel('payer_name'); ?> | |
<div style="clear: both;"> </div> | |
<?php echo $this->form->getInput('payer_name'); ?> | |
<div style="clear: both;"> </div> | |
<?php echo $this->form->getLabel('payer_mobile'); ?> | |
<div style="clear: both;"> </div> | |
<?php echo $this->form->getInput('payer_mobile'); ?> | |
<div style="clear: both;"> </div> | |
<?php echo $this->form->getLabel('payer_email'); ?> | |
<div style="clear: both;"> </div> |
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
#FormGroup.fromstesttwo.component.ts | |
import { Component, Inject } from '@angular/core'; | |
import { FormGroup, FormControl, Validators, FormArray, FormBuilder } from '@angular/forms'; | |
@Component({ | |
selector: 'my-formstwo', | |
templateUrl: "app/fromstesttwo/fromstesttwo.component.html", | |
}) | |
export class FromstesttwoComponent { |
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
let url = URL(string: "http://localhost:8888/iosnotic/index.php?option=com_helloworld&view=helloworld&action=select&id=0") | |
let setion = URLSession.shared | |
let request = NSMutableURLRequest(url: url!) | |
request.httpMethod = "POST" | |
request.timeoutInterval = TimeInterval(10) | |
let postString = "name=22" | |
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
// | |
// ViewController.swift | |
// coredatayoutube | |
// | |
// Created by shahryar tavakkoli on 06/03/2017. | |
// Copyright © 2017 shahryar tavakkoli. All rights reserved. | |
// | |
import UIKit | |
import CoreData |
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
// | |
// TestViewController.swift | |
// whderjson | |
// | |
// Created by shahryar tavakkoli on 09/04/2017. | |
// Copyright © 2017 shahryar tavakkoli. All rights reserved. | |
// | |
import UIKit | |
import Alamofire |
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
# my blog : https://trangell.com/fa/ | |
# public : http://iranonrails.ir | |
defmodule Times do | |
def double(n, b) do | |
n * 2 * b | |
end | |
def rogers(), do: "hi shahryar" |
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
# my blog : https://trangell.com/fa/ | |
# public : http://iranonrails.ir | |
defmodule Factorial do | |
def of(0), do: 1 | |
def of(n), do: n * of(n - 1) | |
end |
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
# my blog : https://trangell.com/fa/ | |
# public : http://iranonrails.ir | |
defmodule Guard do | |
def what_is(x) when is_number(x) do | |
IO.puts "#{x} is a number" | |
end | |
def what_is(x) when is_list(x) do | |
IO.puts "#{inspect(x)} is a list" | |
end |
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
# my blog : https://trangell.com/fa/ | |
# public : http://iranonrails.ir | |
defmodule Example do | |
def func(p1, p2 \\ 2, p3 \\ 3, p4) do | |
IO.inspect [p1, p2, p3, p4] | |
end | |
def foo(a, b \\ :default) do | |
IO.puts "#{a} - #{b}" |
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
# my blog : https://trangell.com/fa/ | |
# public : http://iranonrails.ir | |
defmodule Canvas do | |
@defaults [ fg: "black", bg: "white", font: "Merriweather" ] | |
def draw_text(text, options \\ []) do | |
options = Keyword.merge(@defaults, options) | |
IO.puts "Drawing text #{inspect(text)}" | |
IO.puts "Foreground: #{options[:fg]}" |
OlderNewer