Skip to content

Instantly share code, notes, and snippets.

// Code goes here
var app = angular.module('myApp', []);
app.controller('SignupForm', ['$scope', function($scope){
$scope.submitform = function(){
alert($scope.signup_form.$valid);
}
$scope.checkPassword = function () {
{ "records":[ {"Name":"Alfreds Futterkiste","City":"Berlin","Country":"Germany"}, {"Name":"Ana Trujillo Emparedados y helados","City":"México D.F.","Country":"Mexico"}, {"Name":"Antonio Moreno Taquería","City":"México D.F.","Country":"Mexico"}, {"Name":"Around the Horn","City":"London","Country":"UK"}, {"Name":"B's Beverages","City":"London","Country":"UK"}, {"Name":"Berglunds snabbköp","City":"Luleå","Country":"Sweden"}, {"Name":"Blauer See Delikatessen","City":"Mannheim","Country":"Germany"}, {"Name":"Blondel père et fils","City":"Strasbourg","Country":"France"}, {"Name":"Bólido Comidas preparadas","City":"Madrid","Country":"Spain"}, {"Name":"Bon app'","City":"Marseille","Country":"France"}, {"Name":"Bottom-Dollar Marketse","City":"Tsawassen","Country":"Canada"}, {"Name":"Cactus Comidas para llevar","City":"Buenos Aires","Country":"Argentina"}, {"Name":"Centro comercial Moctezuma","City":"México D.F.","Country":"Mexico"}, {"Name":"Chop-suey Chinese","City":"Bern","Country":"Switzerland"}, {"Name":"Comércio
@ecmelkytz
ecmelkytz / database.yml
Last active August 29, 2015 14:22
Postresql kurulum ve ayarlar
# encoding: utf-8
defaults: &defaults
development:
adapter: postgresql
pool: 5
username: ecmel
password: *****
# socket: /tmp/mysql.sock
[{"question":"Sinav sonucları ne zaman aciklanacak"},{"question":"Sinavlarin bitis tarihi ne zaman?"}]
["Andorra","United Arab Emirates","Afghanistan","Antigua and Barbuda","Anguilla","Albania","Armenia","Angola","Antarctica","Argentina","American Samoa","Austria","Australia","Aruba","Åland","Azerbaijan","Bosnia and Herzegovina","Barbados","Bangladesh","Belgium","Burkina Faso","Bulgaria","Bahrain","Burundi","Benin","Saint Barthélemy","Bermuda","Brunei","Bolivia","Bonaire","Brazil","Bahamas","Bhutan","Bouvet Island","Botswana","Belarus","Belize","Canada","Cocos [Keeling] Islands","Congo","Central African Republic","Republic of the Congo","Switzerland","Ivory Coast","Cook Islands","Chile","Cameroon","China","Colombia","Costa Rica","Cuba","Cape Verde","Curacao","Christmas Island","Cyprus","Czechia","Germany","Djibouti","Denmark","Dominica","Dominican Republic","Algeria","Ecuador","Estonia","Egypt","Western Sahara","Eritrea","Spain","Ethiopia","Finland","Fiji","Falkland Islands","Micronesia","Faroe Islands","France","Gabon","United Kingdom","Grenada","Georgia","French Guiana","Guernsey","Ghana","Gibraltar","Greenl
<?php
$lang['country_AF'] = 'Afganistan';
$lang['country_DE'] = 'Almanya';
$lang['country_AD'] = 'Andorra';
$lang['country_AO'] = 'Angola';
$lang['country_AG'] = 'Antigua ve Barbuda';
$lang['country_AR'] = 'Arjantin';
$lang['country_AL'] = 'Arnavutluk';
$lang['country_AW'] = 'Aruba';
$lang['country_AU'] = 'Avustralya';
response.body
=> {:listele_coklu_response=>
{:return=>
"stdClass Object\n(\n [ListeleCokluResult] => stdClass Object\n (\n [HataBilgisi] => \n [SorguSonucu] => stdClass Object\n (\n [YbKimlikNoIleYbKisiBilgisi] => stdClass Object\n (\n [Ad] => SABINA\n [AnneAd] => SURAYYA\n [AnneEgmSahisId] => \n [AnneKimlikNo] => \n [BabaAd] => ANVAR\n [BabaEgmSahisId] => \n [BabaKimlikNo] => \n [Cinsiyet] => stdClass Object\n (\n [Aciklama] => Kadın\n [Kod] => 2\n )\n\n [DogumTarih] => 1993-05-14T00:00:00\n [DogumYer] =>ÖZBEKİSTAN\n
clc
img = imread('geld.tif');
bw = im2bw(img,0); %gri seviyeli resimlerde negatiflik alir
bw = bwareaopen(bw,100); % 30pixelden kucuk olanlar kaldiriliyor.
SE =strel('disk', 7);
bw2 = imerode(bw,SE);
[L,num] = bwlabel(bw2); %num ile para adetini ogrendik ve etiket atadik
stats = regionprops(bw2, 'Area');
@ecmelkytz
ecmelkytz / pandorabot1
Created February 14, 2014 16:14
Second Life connection with the pandorabots
key requestid;
key user;
string botid;
string cust;
string reply;
string newreply;
integer that_begin;
integer that_end;
integer cust_begin;
clc;
im=imread('coins.png');
im=im2bw(im);
im=imfill(im,'hole');
subplot(2,2,1);
imshow(im)
label=bwlabel(im);
toplam=max(max(label));