gist-id: cd76ef36afbe36e7a65f
- یه برگه تقلب خوب برای هسکل
- [http://www.seas.upenn.edu/~cis194/spring13/](Introduction to Haskell-Spring 2013)
| package org.scribe.builder.api; | |
| import java.util.regex.Matcher; | |
| import java.util.regex.Pattern; | |
| import org.scribe.exceptions.OAuthException; | |
| import org.scribe.extractors.AccessTokenExtractor; | |
| import org.scribe.model.OAuthConfig; | |
| import org.scribe.model.OAuthConstants; | |
| import org.scribe.model.OAuthRequest; |
| def last[A](xs:List[A]): A = xs match { | |
| case x :: Nil => x | |
| case _ :: tail => tail last | |
| case _ => throw new NoSuchElementException | |
| } |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="UTF-8"> | |
| </head> | |
| <body dir="rtl"> | |
| <p> <br> | |
| آبِق:<br> |
| include $(GOROOT)/src/Make.inc | |
| GOFMT=gofmt -spaces=true -tabindent=false -tabwidth=4 | |
| all: | |
| $(GC) jsontest.go | |
| $(LD) -o jsontest.out jsontest.$O | |
| format: | |
| $(GOFMT) -w jsontest.go |
| { | |
| meta: { | |
| code: 200 | |
| } | |
| notifications: [ | |
| { | |
| type: "notificationTray" | |
| item: { | |
| unreadCount: 2 | |
| } |
| \documentclass{letter} | |
| \usepackage{xepersian} | |
| \settextfont{XB Zar} | |
| \signature{میلاد خواجوی} | |
| \address{اصفهان \\ خیابان ... \\ خیابان ... \\ پلاک .. \\ کد پستی ...} | |
| \begin{document} | |
| name := "Statics" | |
| version := "0.1" | |
| scalaVersion := "2.11.6" | |
| libraryDependencies += "org.apache.commons" % "commons-math3" % "3.5" |
gist-id: cd76ef36afbe36e7a65f
| object Simulation { | |
| def main(args: Array[String]): Unit= { | |
| trait A { | |
| var distance: Int = _ | |
| def action = { | |
| distance = distance + 5 | |
| } | |
| } |