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
| // ==UserScript== | |
| // @name Kinopoisk-Torronto | |
| // @namespace http://torronto.evilbloodydemon.ru/ | |
| // @version 0.1 | |
| // @description Кнопка перехода на торронту для кинопоиска | |
| // @author Igor Fomin | |
| // @match http://www.kinopoisk.ru/film/* | |
| // @grant none | |
| // ==/UserScript== |
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
| //subquery | |
| private void UpdateBestVideoQuality(DbTorronto db, Movie movie) | |
| { | |
| db.Movie | |
| .Where(m => m.ID == movie.ID) | |
| .Set(f => f.BestVideoQuality, m => db.Torrent | |
| .Where(t => t.MovieID == m.ID) | |
| .Select(t => t.VideoQuality) | |
| .Max()) |
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
| //--------------------------------------------------------------------------------------------------- | |
| // This code was generated by LinqToDB. | |
| //--------------------------------------------------------------------------------------------------- | |
| using System; | |
| using System.Linq.Expressions; | |
| using NUnit.Framework; | |
| namespace Torronto.BLL | |
| { |
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
| public async Task<string> Get(int id) | |
| { | |
| using (var conn = new RedisConnection("localhost")) | |
| { | |
| await conn.Open(); | |
| var channel = conn.GetOpenSubscriberChannel(); | |
| try | |
| { | |
| var result = string.Empty; |
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
| public async Task<string> Get(int id) | |
| { | |
| using (var conn = new RedisConnection("localhost")) | |
| { | |
| await conn.Open(); | |
| try | |
| { | |
| var value = await conn.Lists.BlockingRemoveFirstString(1, new[] {id.ToString()}, 10); | |
| return value.Item1 + " -> " + value.Item2; |
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
| /// <reference path="_common.ts" /> | |
| module Devices { | |
| export class Device { | |
| constructor( | |
| public ID: number, | |
| public DeviceType: string, | |
| public Vendor: string, | |
| public Model: string, | |
| public Platform: string |
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
| val DB_VERSION = 5; | |
| [suppress("PARAMETER_NAME_CHANGED_ON_OVERRIDE")] | |
| public class PillSQLiteHelper(context: Context) : | |
| SQLiteOpenHelper(context, "pills_db", null, DB_VERSION) { | |
| val migrations: Map<Int, String> = mapOf( | |
| 1 to """ | |
| CREATE TABLE pills ( | |
| _id INTEGER PRIMARY KEY AUTOINCREMENT, | |
| name TEXT NOT NULL, |
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 | |
| $data = array( | |
| "Declarant" => array( | |
| "Governance" => array( | |
| "Name" => "Tommy", | |
| "LastName" => "Vercetti" | |
| ), | |
| ), | |
| 'a' => array( |
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 | |
| class AllAppTest extends CakeTestSuite { | |
| protected $coverageSetup = false; | |
| public static function suite() { | |
| $suite = new static('All Application Tests'); | |
| $suite->addTestDirectoryRecursive(__DIR__); | |
| return $suite; |
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
| var MassVM = app.Class.extend({ | |
| init: function() { | |
| this._fields = [ | |
| 'lastPaid', | |
| 'paymentPeriod', | |
| 'lastTrial', | |
| 'trialPeriod', | |
| 'clickbank', | |
| 'paypal', | |
| 'notes' |
NewerOlder