Skip to content

Instantly share code, notes, and snippets.

[root@demoDB mod_wsgi-4.6.2]# sh -x ./configure --with-python /opt/Anaconda/bin/python
+ DUALCASE=1
+ export DUALCASE
+ test -n ''
+ case `(set -o) 2>/dev/null` in
+ :
+ set -o posix
+ as_nl='
'
+ export as_nl
@anubhaw2091
anubhaw2091 / aws_s3
Created January 12, 2017 14:18
Sample code for SO question
<?php
$aws_key = 'AK';
$aws_secret = 'Fi';
$source_file = '/var/www/html/pos/si/mag/sahara.txt'; // file to upload to S3
$file_type = "text/plain"; // or other file type like "image/jpeg" for JPEG image,
// or "binary/octet-stream" for binary file
$aws_bucket = 'cst'; // AWS bucket
import psutil
import os
import time
start_time = time.time()
import MySQLdb as mysql
import cv2
import sys
import rpy2.robjects as robj
import rpy2.robjects.numpy2ri
rpy2.robjects.numpy2ri.activate()
<?php
if($_SERVER['REQUEST_METHOD']=='GET'){
$request = $_GET["data"];
$jsonData = json_decode($request,true);
echo($request);
echo "\r\nDivide";
echo $jsonData;
echo $jsonData->['numbers'];
$link = mysqli_connect("xx", "xx", "xx", "xx") or die("Error " . mysqli_error($link));
<LinearLayout
android:id="@+id/myRectangleView"
android:layout_width="200dp"
android:layout_height="50dp"
android:background="@drawable/rectangle_view"
android:layout_alignParentBottom="true"
android:layout_alignLeft="@+id/table_t4"
android:layout_alignStart="@+id/table_t4"
android:layout_alignRight="@+id/table_t5"
android:layout_alignEnd="@+id/table_t5"
public void onCreate(Bundle savedInstanceState) {
System.out.println("Anubhaw-oncreate");
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
// Get the UI widgets.
mAddGeofencesButton = (Button) findViewById(R.id.add_geofences_button);
mRemoveGeofencesButton = (Button) findViewById(R.id.remove_geofences_button);
// Empty list for storing geofences.