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 | |
| if ($_FILES["file"]["error"] > 0) | |
| { | |
| $arr = array('result' => 'error'); | |
| echo json_encode($arr); | |
| //echo "Return Code: " . $_FILES["file"]["error"] . "<br />"; | |
| } | |
| else | |
| { | |
| if (file_exists("uploads/" . $_FILES["file"]["name"])) |
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
| File initialFile = new File(new java.io.File("").getAbsolutePath()+"/app/src/main/assets/ab.txt"); | |
| System.out.println("path : "+initialFile.getPath().toString()); | |
| try { | |
| InputStream targetStream = new FileInputStream(initialFile); | |
| InputStreamReader is = new InputStreamReader(targetStream); | |
| StringBuilder sb=new StringBuilder(); | |
| BufferedReader br = new BufferedReader(is); | |
| String read = br.readLine(); |
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
| public void showDialog(){ | |
| final ProgressDialog dialog = ProgressDialog.show(EasterEggActivity.this, "Loading", "Loading. Please wait...", true); | |
| Runnable progressRunnable = new Runnable() { | |
| @Override | |
| public void run() { | |
| dialog.cancel(); | |
| } |
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 | |
| //values from post request | |
| $name=$_POST['name']; | |
| $email=$_POST['email']; | |
| $comment=$_POST['comment']; | |
| //predefined values | |
| $send_email_to = "sample@gmail.com"; | |
| $subject = "Post Request To Server"; |
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
| temp = [] | |
| for num in range(0,10): | |
| if(num<=1): | |
| temp.append(num) | |
| else: | |
| temp.append(temp[num-1]+temp[num-2]) | |
| print(temp) |
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 | |
| $inputJSON = file_get_contents('php://input'); | |
| $input= json_decode( $inputJSON, TRUE ); | |
| //echo json_encode($input); | |
| //echo "Hello " , $input['name'] , ", " , "Your age is ", $input['age']; | |
| $arr = array('status' => 'saved', 'data'=>"Name = ".$input['name'].", Age = ".$input['age']); | |
| echo json_encode($arr); |
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
| #!/bin/sh | |
| UNIVERSAL_OUTPUTFOLDER=${BUILD_DIR}/${CONFIGURATION}-universal | |
| # make sure the output directory exists | |
| mkdir -p "${UNIVERSAL_OUTPUTFOLDER}" | |
| # Step 1. Build Device and Simulator versions | |
| xcodebuild -target "${PROJECT_NAME}" ONLY_ACTIVE_ARCH=NO -configuration ${CONFIGURATION} -sdk iphoneos BUILD_DIR="${BUILD_DIR}" BUILD_ROOT="${BUILD_ROOT}" clean build | |
| xcodebuild -target "${PROJECT_NAME}" -configuration ${CONFIGURATION} -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO BUILD_DIR="${BUILD_DIR}" BUILD_ROOT="${BUILD_ROOT}" clean build |
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
| #!/bin/sh | |
| UNIVERSAL_OUTPUTFOLDER=${BUILD_DIR}/${CONFIGURATION}-universal | |
| # make sure the output directory exists | |
| mkdir -p "${UNIVERSAL_OUTPUTFOLDER}" | |
| # Step 1. Build Device and Simulator versions | |
| xcodebuild -workspace "${PROJECT_NAME}.xcworkspace" -scheme "${PROJECT_NAME}" ONLY_ACTIVE_ARCH=NO -configuration ${CONFIGURATION} -sdk iphoneos BUILD_DIR="${BUILD_DIR}" BUILD_ROOT="${BUILD_ROOT}" clean build | |
| xcodebuild -workspace "${PROJECT_NAME}.xcworkspace" -scheme "${PROJECT_NAME}" -configuration ${CONFIGURATION} -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO BUILD_DIR="${BUILD_DIR}" BUILD_ROOT="${BUILD_ROOT}" clean build |
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
| 0xCa39A4E1B0B31dA18233cb205B48babB68b62e71 |