This script will help you to sort videos just use it as below and let him deal with it ;)
$ python ps-sorter.py "/path/to/course-directory"
| <?php | |
| class TwitterFeed { | |
| private $consumerKey; | |
| private $consumerSecret; | |
| private $accessToken; | |
| private $accessSecret | |
| public function __constrcut($config){ |
| <?php | |
| return [ | |
| 'consumer_key' => env('Twitter_Consumer_Key'), | |
| 'consumer_secret' => env('Twitter_Consumer_Secret'), | |
| 'access_token' => env('Twitter_Access_Token'), | |
| 'access_secret' => env('Twitter_Access_Secret'), | |
| ]; |
| start=2013-09-05 | |
| end=2013-09-11 | |
| while [[ $start < $end ]] | |
| do | |
| printf "$start\n"; start=$(date -d "$start + 1 day" +"%Y-%m-%d") | |
| done |
| <?php | |
| interface Logger { | |
| public function log(string $msg); | |
| } | |
| class Application { | |
| private $logger; | |
| public function getLogger(): Logger { |
| function sum(arrayOfIntegers){ | |
| return arrayOfIntegers.reduce((a, b) => a + b, 0); | |
| } | |
| // Example | |
| var integers = [1,2,3,4,5); | |
| sum(integers) | |
| // Result | |
| // 15 |
| class Node(object): | |
| def __init__(self, data, prev, next): | |
| self.data = data | |
| self.prev = prev | |
| self.next = next | |
| class DoubleList(object): | |
| head = None |
| <?php | |
| class Posts { | |
| private $commentsModel; | |
| private $postsModel; | |
| public function __construct(){ | |
| $this->commentsModel = new \App\Models\CommentsModel; | |
| $this->postsModel = new \App\Models\PostsModel; |
| <?php | |
| Interface IPosts{} | |
| Interface IComments{} | |
| # Models | |
| Class CommentsMysqlModel implements IComments{} | |
| Class CommentsMongoDBModel implements IComments{} | |
| Class PostsMysqlModel implements IPosts{} |
| package main | |
| import ( | |
| "fmt" | |
| "time" | |
| ) | |
| // Suggestions from golang-nuts | |
| // http://play.golang.org/p/Ctg3_AQisl |