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
| def f1(n): | |
| import time | |
| start=time.time() | |
| a = ["Hi there "] | |
| for i in range(n): | |
| a.append(f"({i},{i}),") | |
| s="".join(a) | |
| end=time.time() | |
| print(f"{n} adet deneme -> {end-start}") | |
| return s |
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
| package main | |
| import ( | |
| "bytes" | |
| "fmt" | |
| "strconv" | |
| "strings" | |
| "time" | |
| ) |
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
| from flask import Flask, render_template | |
| from suds.client import Client | |
| app = Flask(__name__) | |
| class CityService(object): | |
| __cities = [] | |
| __loaded = False | |
| __wsdl = "https://api.n11.com/ws/CityService.wsdl" |
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
| <f:metadata> | |
| <f:viewParam name="CustomerID" value="#{customerBean.customerId}" /> | |
| <f:event listener="#{customerBean.loadData()}" type="preRenderView" /> | |
| </f:metadata> |
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 org.springframework.beans.factory.annotation.Autowired; | |
| import org.springframework.context.annotation.Bean; | |
| import org.springframework.context.annotation.Configuration; | |
| import org.springframework.context.annotation.PropertySource; | |
| import org.springframework.context.support.ReloadableResourceBundleMessageSource; | |
| import org.springframework.core.env.Environment; | |
| import org.thymeleaf.spring4.SpringTemplateEngine; | |
| import org.thymeleaf.spring4.templateresolver.SpringResourceTemplateResolver; | |
| import org.thymeleaf.spring4.view.ThymeleafViewResolver; |
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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <beans xmlns="http://www.springframework.org/schema/beans" | |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
| xmlns:context="http://www.springframework.org/schema/context" | |
| xmlns:mvc="http://www.springframework.org/schema/mvc" | |
| xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc.xsd"> | |
| <context:property-placeholder location="classpath:application.properties" /> | |
| <mvc:annotation-driven/> | |
| <!-- | |
| <mvc:resources mapping="/resources/**" location="/resources/" /> |
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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <beans xmlns="http://www.springframework.org/schema/beans" | |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tx="http://www.springframework.org/schema/tx" | |
| xmlns:context="http://www.springframework.org/schema/context" | |
| xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd"> | |
| <context:property-placeholder location="classpath:application.properties" /> | |
| <!-- | |
| <bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"> | |
| <property name="location"> |
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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <faces-config xmlns="http://java.sun.com/xml/ns/javaee" | |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
| xsi:schemaLocation="http://java.sun.com/xml/ns/javaee | |
| http://java.sun.com/xml/ns/javaee/web-facesconfig_2_1.xsd" | |
| version="2.1"> | |
| <application> | |
| <el-resolver> | |
| org.springframework.web.jsf.el.SpringBeanFacesELResolver |
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
| <listener> | |
| <listener-class> | |
| org.springframework.web.context.ContextLoaderListener | |
| </listener-class> | |
| </listener> | |
| <listener> | |
| <listener-class> | |
| org.springframework.web.context.request.RequestContextListener | |
| </listener-class> | |
| </listener> |
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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <web-app version="3.1" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"> | |
| <context-param> | |
| <param-name>javax.faces.PROJECT_STAGE</param-name> | |
| <param-value>Development</param-value> | |
| </context-param> | |
| <servlet> | |
| <servlet-name>Faces Servlet</servlet-name> | |
| <servlet-class>javax.faces.webapp.FacesServlet</servlet-class> | |
| <load-on-startup>1</load-on-startup> |