This file contains 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
POST some/url/ | |
host : hmac.demo.org | |
Authorization: Signature keyID="my-key-name" | |
algorithm: "hmac-sha256" | |
headers: "content-length host date (request-target)", | |
signature: "j05o2...." | |
Date: Nov 28th, 2018 | |
Accept: */* | |
Content-type: application/json | |
Content-length: 46 |
This file contains 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
POST /oauth2.0/token | |
Host: api.server.io | |
User-agent: postman/v1.0.0 | |
Accept: */* | |
Content-type: application/x-www-url-encoded | |
Content-length: 54 | |
username=rihan&password=password&granttype=password |
This file contains 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
{ | |
"_id": "56f13b504666f77e4652bbf3", | |
"user_id": "la6m5a1ha", | |
"uname": "lol", | |
"__v": 0, | |
"notify_options_fk_key": { | |
"_id": "56f13ba94666f77e4652bbf4", | |
"__v": 1, | |
"bid_opt_container": [ | |
{ |
This file contains 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 notifyconfigs = [ | |
{path: 'notify_options_fk_key.buy_opt_container', model: 'BuyKeywordsOption'}, | |
{path: 'notify_options_fk_key.ask_opt_container', model: 'AskKeywordsOption'}, | |
{path: 'notify_options_fk_key.bid_opt_container', model: 'BidKeywordsOption'} | |
]; | |
if(req.params && req.params.id) { | |
Usr | |
.findById(req.params.id) | |
.populate('notify_options_fk_key') |
This file contains 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
package topCoderAlgos; | |
/** | |
* This program generates topCoderAlgos.Fibonacii series till | |
* the target number | |
*/ | |
import java.util.ArrayList; | |
public class Fibonacii { | |
private ArrayList<Integer> fibSeries; |
This file contains 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 java.io.*; | |
import java.net.*; | |
import java.util.*; | |
public class MusicServer { | |
ArrayList<ObjectOutputStream> clientOutputStreams; | |
public static void main (String[] args) { | |
new MusicServer().go(); |
This file contains 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 java.awt.*; | |
import javax.swing.*; | |
import java.io.*; | |
import javax.sound.midi.*; | |
import java.util.*; | |
import java.awt.event.*; | |
import java.net.*; | |
import javax.swing.event.*; | |
This file contains 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 Pages extends CI_Controller { | |
public function view($page = 'home') | |
{ | |
if ( ! file_exists('application/views/pages/'.$page.'.php')) { | |
// show the fatal 404 error. | |
// the below function is CodeIgnitor's native built-in function | |
show_404(); |
This file contains 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 if ( ! defined('BASEPATH')) exit('No direct script access allowed'); | |
/** | |
* CodeIgniter | |
* | |
* An open source application development framework for PHP 5.1.6 or newer | |
* | |
* @package CodeIgniter | |
* @author ExpressionEngine Dev Team | |
* @copyright Copyright (c) 2008 - 2011, EllisLab, Inc. | |
* @license http://codeigniter.com/user_guide/license.html |
This file contains 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 Blog(body,date,image) | |
{ | |
this.body=body; | |
this.date=date; | |
this.image=image; | |
} |