The initial source comes from sdcuike/issueBlog#4
https://github.com/PacktPublishing free to download books code by Packet
https://github.com/EbookFoundation/free-programming-books Very immense
<?php | |
$httpReferer = (isset($_SERVER['HTTP_REFERER']) && ((strpos($_SERVER['HTTP_REFERER'], $_SERVER['HTTP_HOST'])) !== false)) ? $_SERVER['HTTP_REFERER'] : null; |
<?php | |
defined('BASEPATH') OR exit('No direct script access allowed'); | |
class Sirkulasi extends CI_Controller{ | |
public $dpost; | |
public function __construct() | |
{ | |
parent::__construct(); | |
$this->dpost = $this->input->post(null,true); |
https://github.com/PacktPublishing free to download books code by Packet
https://github.com/EbookFoundation/free-programming-books Very immense
# -*- coding: utf-8 -*- | |
''' | |
Example code to write large output in XML with Unicode and namespaces. | |
This code has been referenced in a lightning talk I gave at EuroPython 2012 | |
in Florence. | |
''' | |
# This program is free software. It comes without any warranty, to | |
# the extent permitted by applicable law. You can redistribute it | |
# and/or modify it under the terms of the Do What The Fuck You Want | |
# To Public License, Version 2, as published by Sam Hocevar. See |
Hello (<-- two spaces)
World
Hello
World
Windows PowerShell has several transition aliases that allow UNIX and CMD users to use familiar command names in Windows PowerShell. The most common aliases are shown in the table below, along with the Windows PowerShell command behind the alias and the standard Windows PowerShell alias if one exists.
CMD Command | UNIX Command | PowerShell Command | PowerShell Alias |
---|---|---|---|
dir | ls | Get-ChildItem | gci |
/* | |
* First create the keystore (to allow SSL protection) by importing the LDAP | |
* certificate (cert.pem) with: | |
* keytool -import -keystore keystore -storepass changeit -noprompt -file cert.pem | |
* | |
* You can get the certificate with OpenSSL: | |
* openssl s_client -connect ldap.server.com:636 </dev/null 2>/dev/null | sed -n '/^-----BEGIN/,/^-----END/ { p }' > cert.pem | |
* | |
* Then compile this class with: | |
* javac LdapAuth.java |
module.exports = function(grunt) { | |
grunt.initConfig({ | |
compress: { | |
main: { | |
options: { | |
archive: 'mdstripe.zip' | |
}, | |
files: [ | |
{src: ['controllers/**'], dest: 'mdstripe/', filter: 'isFile'}, |
function getTwitterTimeline($userName) { | |
$consumer_key = ''; | |
$consumer_secret = ''; | |
$oauth_token = ''; | |
$oauth_secret = ''; | |
// options | |
$number = 5; | |
$exclude_replies = 'false'; | |
$screenname = (isset($userName)) ? '&screen_name='.$userName : ''; |
<?php | |
use Abraham\TwitterOAuth\TwitterOAuth; | |
$tweet="this is a test tweet"; | |
$connection = new TwitterOAuth(/*CONSUMER_KEY*/, /*CONSUMER_SECRET*/, /*ACCESS_TOKEN*/, /*ACCESS_TOKEN_SECRET*/); | |
$content = $connection->get('account/verify_credentials'); | |
$connection->post('statuses/update', array('status' => $tweet)); | |
?> |