View question-1.php
$args = array(
'numberposts' => 15,
$recent_posts = wp_get_recent_posts( $args, ARRAY_A );
View Struct, save and read to file
#include <stdio.h>
#include <string.h>
//author: snbk97
struct emp
int emp_code;
char emp_name[100];
char emp_date_of_birth[10];
char emp_date_of_joining[10];
char emp_designation[100];
package org.andgomes;
import java.util.Properties;
public class PropertiesReader {
public static void main(String[] args) {
View brlog.trunk-test.20170720-233929
# Logfile created on 2017-07-20 23:39:29 +0900 by logger.rb/54362
I, [2017-07-20T23:39:29.317673 #17864] INFO -- : #<BuildRuby:0x00000000a26818 @REPOSITORY="", @REPOSITORY_TYPE=:svn, @git_branch=nil, @svn_revision=nil, @TARGET_NAME="trunk-test", @SRC_DIR="/home/ko1/ruby/src", @BUILD_DIR="/home/ko1/ruby/build", @INSTALL_DIR="/home/ko1/ruby/install", @TARGET_SRC_DIR="/home/ko1/ruby/src/trunk-test", @TARGET_BUILD_DIR="/home/ko1/ruby/build/trunk-test", @TARGET_INSTALL_DIR="/home/ko1/ruby/install/trunk-test", @configure_opts=["--enable-shared"], @build_opts="-j12", @test_opts="TESTS='-j12'", @incremental=true, @steps=["checkout", "autoconf", "configure", "build_up", "build_miniruby", "build_ruby", "build_all", "build_install", "test_btest", "test_basic", "test_all", "test_rubyspec"], @quiet=false, @gist=false, @logfile="/home/ko1/ruby/logs/brlog.trunk-test.20170720-233929", @logger=#<Logger:0x000000009b4448 @progname=nil, @level=0, @default_formatter=#<Logger::Formatter:0
View functions.php
add_action( 'genesis_before_entry', 'custom_remove_titles' );
* Remove entry header on static Pages.
function custom_remove_titles() {
// if we are not on a static Page, abort.
if ( ! is_page() ) {
View example.php
// URL which should be requested
$url = '';
$apikey = 'YOUR API KEY'; // API Key
$email = 'Email Address to Test'; // Email to test
// jSON String for request
$url .= "?email=$email&key=$apikey";
// Initializing curl
$ch = curl_init( $url );
if($ch == false) {
View sample.txt
In Campaign Code we have to append some string at the end of the url of Which we will be sharing on facebook
So normally when we share link on facebook it will be something like this
Now we are going to add campaign code at the end of the url ... So our url will look something like this
View FilesSnapshot.xml
<?xml version="1.0" encoding="utf-8"?>
<fileSnapshot xmlns:xsd="" xmlns:xsi="">
<file path="C:\ProgramData\chocolatey\lib\odrive\odrive.nupkg" checksum="3939E1127BBDC90A153C1A29604C12DB" />
<file path="C:\ProgramData\chocolatey\lib\odrive\odrive.nuspec" checksum="B31D6F432EDF3FE81CA8FB9E48D43B61" />
<file path="C:\ProgramData\chocolatey\lib\odrive\tools\chocolateyinstall.ps1" checksum="44B0E5DDC12A0F4C267812B1F14B17F0" />
View books.hs
module Books where
import System.Random
type Book = String
theBooks :: [ Book ]
theBooks = [ "How to Design Programs",
"Game Engine Architecture",
"Hacker's Delight",
"Haskell Programming from FP",
"LYAH" ]
#!/usr/bin/env python3
import asyncio
loop = asyncio.get_event_loop()
req = asyncio.Queue()
async def fetcher(a):
print("start fetching", a)
await asyncio.sleep(3)
print("end fetching", a)