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
| degisken=5 | |
| def birfonksiyon(): | |
| degisken=15 | |
| print degisken |
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
| degisken=5 | |
| def birfonksiyon(): | |
| global degisken=15 | |
| print degisken |
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
| basit_array=["TL","USD","CAD","EUR"] | |
| print basit_array[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
| basit_dict = { | |
| 'Türkiye': 'TL', | |
| 'Amerika': 'USD', | |
| 'Kanada': 'CAD', | |
| 'Avrupa': 'EUR' | |
| } | |
| print basit_dict['Türkiye] |
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
| matrix={} | |
| for i in range(1,en+1): | |
| for j in range(1,boy+1): | |
| matrix[i,j]=Label(OyunPenceresi, text=random.randint(1,9),font=("Helvetica",30)) | |
| print matrix[a,b].cget("text") | |
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
| btnAsol=Button(AoyuncuPenceresi,text ="sol",width=6,height=2,command=TetikFonksiyon).place(relx=0.1,rely=0.35) |
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
| btnAsol=Button(AoyuncuPenceresi,text ="sol",width=6,height=2,command=lambda:TetikFonksiyon(1)).place(relx=0.1,rely=0.35) |
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:cp1254 | |
| #kutuphaneler | |
| from Tkinter import * | |
| import tkMessageBox | |
| import random | |
| import tkFont | |
| #global degiskenler | |
| Aoyuncusu="" |
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
| //$message herhangi bir string olmak uzere hashtagler, mentionlar,youtube linkleri ve normal linkler icin preg. | |
| $parsedMessage = | |
| preg_replace_callback_array( | |
| [ | |
| '/(?i)\b((?:https?:\/\/|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:\'".,<>?«»“”‘’]))/' | |
| =>function ($m) { | |
| $matches=[]; | |
| $match_bool=preg_match('/\s*[a-zA-Z\/\/:\.]*youtu(be.com\/watch\?v=|.be\/)([a-zA-Z0-9\-_]+)([a-zA-Z0-9\/\*\-\_\?\&\;\%\=\.]*)/i',$m[0],$matches); | |
| if($match_bool) | |
| { |
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
| /** | |
| * Compile blade template string to (bare) php | |
| * @param $value | |
| * @param array $args | |
| * @return string | |
| * @throws \Exception | |
| */ | |
| public static function bladeCompile($value, array $args = array()) | |
| { | |
| $generated = \Blade::compileString($value); |
OlderNewer