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 | |
/* | |
* projecteuler.net | |
* Even Fibonacci numbers PHP Solve | |
*/ | |
$previous = 1; | |
$current = 2; | |
$sum_even = $current; |
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 | |
/* | |
* projecteuler.net | |
* 4. Largest palindrome product PHP Solve | |
*/ | |
$max = 0; | |
$output = null; | |
for ($i = 100; $i < 1000; $i++ ) { |
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
#!/bin/sh | |
export NDK=/home/null/android-ndk-r9c | |
$NDK/build/tools/make-standalone-toolchain.sh --platform=android-9 --toolchain=arm-linux-androideabi-4.8 --install-dir=`pwd`/android-toolchain-arm | |
export TOOLCHAIN_PATH=`pwd`/android-toolchain-arm/bin | |
export TOOL=arm-linux-androideabi | |
export NDK_TOOLCHAIN_BASENAME=${TOOLCHAIN_PATH}/${TOOL} | |
export CC=$NDK_TOOLCHAIN_BASENAME-gcc | |
export CXX=$NDK_TOOLCHAIN_BASENAME-g++ | |
export LINK=${CXX} |
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 | |
/* | |
* | |
* Find some friend on Facebook hidden friendlist user | |
* | |
* more information : http://goo.gl/av95pC | |
* | |
* Instruction | |
* | |
* 1. Register New Facebook User |
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
/* | |
* projecteuler.net | |
* 25. 1000-digit Fibonacci number | |
* | |
* compile | |
* g++ 25.cpp -o 25 -lgmp -lgmpxx | |
*/ | |
#include <cstdlib> | |
#include <iostream> | |
#include <gmp.h> |
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
language: php | |
php: | |
- 5.5 | |
- 5.4 | |
- 5.3 | |
- hhvm | |
before_script: | |
- wget http://getcomposer.org/composer.phar | |
- php composer.phar install --dev --no-interaction |
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
filter: | |
excluded_paths: [tests/*] | |
checks: | |
php: | |
code_rating: true | |
remove_extra_empty_lines: true | |
remove_php_closing_tag: true | |
remove_trailing_whitespace: true | |
fix_use_statements: | |
remove_unused: true |
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
language: php | |
php: | |
- 5.5 | |
- 5.4 | |
- 5.3 | |
- hhvm | |
before_script: | |
- wget http://getcomposer.org/composer.phar | |
- php composer.phar install --dev --no-interaction |
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 | |
$filename = 'A-small-practice.in'; | |
$lines = file($filename); | |
$input_size = trim($lines[0]); | |
$map = array( | |
'a' => 'y', | |
'b' => 'h', |
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 android.view.View; | |
import android.view.ViewGroup; | |
import android.widget.CheckBox; | |
import android.widget.EditText; | |
import android.widget.RadioGroup; | |
import android.widget.ScrollView; | |
/** | |
* Created by null on 3/22/15. | |
*/ |
OlderNewer