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
| import com.amazonaws.services.glue.GlueContext | |
| import com.amazonaws.services.glue.util.GlueArgParser | |
| import com.amazonaws.services.glue.util.Job | |
| import java.util.Calendar | |
| import org.apache.spark.SparkContext | |
| import org.apache.spark.sql.Dataset | |
| import org.apache.spark.sql.Row | |
| import org.apache.spark.sql.SaveMode | |
| import org.apache.spark.sql.SparkSession | |
| import org.apache.spark.sql.functions.from_json |
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 | |
| declare(strict_types=1); | |
| namespace Your\Own\Namespace; | |
| use Doctrine\ORM\Internal\Hydration\IterableResult; | |
| /** | |
| * This is workaround for https://github.com/doctrine/doctrine2/issues/6480 |
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
| $bundles[] = new Symfony\Bundle\DebugBundle\DebugBundle(); |
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
| <?xml version="1.0"?> | |
| <root> | |
| <item> | |
| <name>KANA/EISUU for US keyboard</name> | |
| <identifier>private.kana-eisuu-for-us-keyboard</identifier> | |
| <autogen> | |
| --KeyToKey-- | |
| KeyCode::COMMAND_R, | |
| KeyCode::JIS_KANA |
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 | |
| /* | |
| * This file is part of the symfony package. | |
| * (c) 2004-2006 Fabien Potencier <[email protected]> | |
| * | |
| * For the full copyright and license information, please view the LICENSE | |
| * file that was distributed with this source code. | |
| */ |
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
| set :application, "example.com" | |
| set :deploy_to, "/var/www/example.com" | |
| set :domain, "example.com" | |
| #logger.level = Logger::MAX_LEVEL | |
| set :scm, :git | |
| set :repository, "[email protected]:you/example.com.git" | |
| server domain, :app, :web, :db, :primary => true |
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 | |
| /** | |
| * SQLSplitter class. | |
| * | |
| * @author Issei Murasawa <[email protected]> | |
| * @version 1.0 | |
| * @license http://opensource.org/licenses/MIT The MIT License | |
| * @see https://gist.github.com/4480253 | |
| */ |
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 | |
| /** | |
| * CommandExecutor - The executor of the shell command from web. | |
| * | |
| * @author Issei Murasawa <[email protected]> | |
| * @version 1.0 beta | |
| * @license http://opensource.org/licenses/MIT The MIT License | |
| * @link https://gist.github.com/4480198 | |
| */ |
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 | |
| /** | |
| * Mercurial file-diff maker. | |
| * | |
| * @author Issei Murasawa <[email protected]> | |
| * @version 0.0.3 beta | |
| */ | |
| $rev = isset($_SERVER['argv'][1]) ? $_SERVER['argv'][1] : die("Please specify revision in 1st argument.\n"); | |
| $source = isset($_SERVER['argv'][2]) ? preg_replace('@[\\\\/]$@', '', $_SERVER['argv'][2]) : dirname(__FILE__); |
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 | |
| define('SAVE_PATH', 'c:\\users\\yourname\\dropbox'); | |
| $xamppPath = 'c:\\xampp'; | |
| run(array( | |
| 'c:\\windows\\system32\\drivers\\etc\\hosts', | |
| $xamppPath . '/php/php.ini', | |
| $xamppPath . '/mysql/bin/my.ini', |