This file contains hidden or 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
# -*- coding: utf-8 -*- | |
import MySQLdb | |
import Tkinter | |
import sys | |
reload(sys) | |
sys.setdefaultencoding("utf-8") | |
from Tkinter import * | |
from ttk import * |
This file contains hidden or 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
#1 sm adından bir simulator nesnesi oluşturun | |
set sm [new Simulator] | |
#2 tüm verileri yaz | |
set nf [open throughput.tr w] | |
$sm namtrace-all $nf | |
#3 50 düğüm oluştur | |
for {set i 0} {$i < 50} {incr i} { | |
set n($i) [$sm node] |
This file contains hidden or 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
enterNum = 1 | |
counter = 0 | |
nubmerOfPrime = 0 | |
def isPrime(num): | |
global counter | |
if num > 1: | |
for i in range(2, num): | |
if num % i == 0: | |
return 1 |
This file contains hidden or 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 | |
// List games | |
/** | |
* @Route("/admin/oyunlar", name="oyunlar") | |
*/ | |
public function index() | |
{ | |
$games = $this ->.....->findAll(); | |
This file contains hidden or 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
<form method="post"> | |
<input type="text" name="sliders[name]"> | |
<input type="number" name="sliders[price]"> | |
<input type="text" name="sliders[image]"> | |
<button type="submit" >Kaydet</button> | |
</form> |
This file contains hidden or 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 | |
// substr | |
// strpos | |
// strlen | |
$str = "Mahmut Kara*Karabuk Universitesi,Ankara@1995"; | |
$name = substr($str, 0, strpos($str, " ")); |
This file contains hidden or 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
<form method="post"> | |
<input type="text" name="games[name]" value="{{game.name}}" > | |
<input type="number" name="games[price]" value="{{game.price}}"> | |
<input type="text" name="games[image]" value="{{game.image}}"> | |
<button type="submit">Kaydet</button> | |
</form> |
This file contains hidden or 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
{% for game in games %} | |
<tr> | |
<td>{{game.id}}</td> | |
<td>{{game.name}}</td> | |
<td>{{game.price}}</td> | |
<td><a href="{{ path("edit-game", {'id': game.id} ) }}"> Edit </a></td> | |
<td><a href="{{ path("delete-game", {'id': game.id} ) }}"> Delete </a></td> | |
</tr> | |
{% endfor %} | |
This file contains hidden or 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
#### FRAGMENTS #### | |
1-) | |
View view=inflater.inflate(R.layout.fragment_version , container, false); | |
Apilevel = view.findViewById(R.id.tv_Apilevel); | |
2-) | |
ArrayAdapter<String> arrayAdapter=new ArrayAdapter<String>(getActivity(),android.R.layout.simple_list_item_1,listAndroidVersion); | |
lvVersions.setAdapter(arrayAdapter); |
This file contains hidden or 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
import { createStore, applyMiddleware, compose } from 'redux'; | |
import createSagaMiddleware from 'redux-saga' | |
import rootReducer from './store' | |
const sagaMiddleware = createSagaMiddleware() | |
const store = createStore(rootReducer, compose( | |
applyMiddleware(sagaMiddleware), |