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
| Demo |
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
| /** | |
| * Incrementing listening count | |
| * creating a new listen element if artistID is not present | |
| **/ | |
| var artistID, userID; | |
| if (!db.users.findAndModify({ | |
| query: { userID: userID, 'listen.artistID': artistID }, | |
| update: { $inc: { 'listen.$.count': 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
| (function () { | |
| // An alternative version of the chart type Doughnut in Chart.js | |
| Chart.types.Doughnut.extend({ | |
| name: "DoughnutAlt", | |
| defaults: this.defaultConfig, | |
| draw: function () { | |
| Chart.types.Doughnut.prototype.draw.apply(this, arguments); | |
| this.chart.ctx.fillStyle = 'black'; | |
| this.chart.ctx.textBaseline = 'middle'; |
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
| Param( | |
| [string]$pat, | |
| [string]$url, | |
| [string]$agentPrefix, | |
| [string]$pool, | |
| [string]$sourceDir, | |
| [string]$tgtDirPrefix, | |
| [int]$copies | |
| ) |
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
| Microsoft (R) Build Engine version 15.5.180.51428 for .NET Framework | |
| Copyright (C) Microsoft Corporation. All rights reserved. | |
| Build started 1/08/2018 1:47:49 AM. | |
| Project "D:\projects\MyTestSolution\MyTestWebApplication\MyTestWebApplication.csproj" on node 1 (default targets). | |
| PrepareForBuild: | |
| Creating directory "obj\Release\". | |
| GenerateTargetFrameworkMonikerAttribute: | |
| Skipping target "GenerateTargetFrameworkMonikerAttribute" because all output files are up-to-date with respect to the input files. | |
| CoreCompile: |
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
| 'use strict'; | |
| exports.handler = (event, context, callback) => { | |
| const request = event.Records[0].cf.request; | |
| const headers = request.headers; | |
| const uri = request['uri']; | |
| const botPattern = "Googlebot\\/|Googlebot-Mobile|Googlebot-Image|Googlebot-News|Googlebot-Video|AdsBot-Google([^-]|$)|AdsBot-Google-Mobile|Mediapartners-Google|Mediapartners \\(Googlebot\\)|APIs-Google|bingbot"; | |
| var re = new RegExp(botPattern, 'i'); | |
| var userAgent = headers['user-agent'][0]['value']; |
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 express = require('express') | |
| var controller = require('../controllers/revision.server.controller.js') | |
| var model = require('../models/revision.js') | |
| var router = express.Router() | |
| console.log(controller.showTitleForm) | |
| router.get('/', controller.showTitleForm) | |
| router.get('/getLatest', controller.getLatest); | |
| module.exports = router |
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 express = require('express') | |
| var controller = require('../controllers/revision.server.controller.js') | |
| var model = require('../models/revision.js') | |
| var router = express.Router() | |
| console.log(controller.showTitleForm) | |
| router.get('/', controller.showTitleForm) | |
| router.get('/getLatest', controller.getLatest); | |
| module.exports = router |
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
| // iOS SDK BLE Example | |
| #include <TSCLIB/TSCLIB.h> | |
| #include <CoreBluetooth/CoreBluetooth.h> | |
| TSCLIB *lib = [TSCLIB new]; | |
| NSMutableArray* deviceList = [lib searchBLEDevice: 2]; | |
| for(int i=0;i<deviceList.count;i++) | |
| { | |
| //NSLog(@"peripheral\n%@\n",deviceList[i]); |
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
| // iOS SDK Example | |
| // referenced from https://apac.tscprinters.com/en/downloads | |
| #include <TSCLIB/TSCLIB.h> | |
| TSCSDK *lib = [TSCSDK new]; | |
| //[lib openportMFI:@"com.issc.datapath"]; | |
| [lib openport:@"10.0.10.194"]; | |
| [lib openport:@"10.0.10.194"]; | |
| //NSData *status = [lib printer_status]; | |
| //0x00:Normal, 0x01:Head opened, 0x10:Pause |
OlderNewer