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
//How to run: | |
// node deleteGridFSChunks.js <hostname> <databaseName> | |
const { MongoClient } = require('mongodb'); | |
const args = process.argv.slice(2); | |
async function main() { | |
if (args.length != 2) | |
{ | |
console.info("Warning\nTwo arguments are required: Hostname and database name"); | |
return; |
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 sys | |
import pika | |
import json | |
import re | |
import logging | |
import logging.handlers | |
PUBLISHER_EXCHANGE_NAME = 'DoSomeJob' | |
CONSUMER_QUEUE_NAME = 'python_consumer_queue' |
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 example shows how to execute a stored procedured in MySQL in Laravel 5.3 and get the output values. | |
*/ | |
//Input params | |
$search = 'test'; | |
$page = 1; | |
$perPage = 10; | |
//Output values |
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
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.Collections.Specialized; | |
using System.Diagnostics; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using Xamarin.Forms; |
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
/* | |
Problem: Determine how many people need to hire | |
Input specs: | |
- first line contains the current number of customer service executives | |
- second line contains a number of records in data set | |
- next linkes contains a pair of timestamps representing a start of call and end of call | |
Input demo: | |
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
using System; | |
using System.Collections; | |
using System.Collections.Specialized; | |
using System.Linq; | |
using Xamarin.Forms; | |
namespace WrapPanelDemo.Controls | |
{ | |
public class AwesomeWrappanel : Layout<View> | |
{ |
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 defined('BASEPATH') OR exit('No direct script access allowed'); | |
class MY_Form_validation extends CI_Form_validation | |
{ | |
function __construct() | |
{ | |
parent::__construct(); | |
log_message('debug', "MY_Form_validation Class Initialized"); | |
} |