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 | |
$s = '2018-01-25'; | |
$e = '2018-02-26'; | |
$interval = \DateInterval::createFromDateString('1 day'); | |
$start_datetime = new \DateTime($s); | |
$end_datetime = new \DateTime($e); | |
$date_period = new \DatePeriod($start_datetime, $interval, $end_datetime->add(new DateInterval('P1D'))); | |
$dates = array(); |
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
#!/usr/bin/perl | |
use warnings; | |
use strict; | |
use Getopt::Std; | |
use Math::Trig; | |
my $options = {}; | |
getopts("n:l:m:x:X:y:Y:z:Z:h", $options); | |
if ($options->{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
:%s/old-text/new-text/g |
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
package com.jlevasseur.consumer; | |
import org.springframework.context.ApplicationContext; | |
import org.springframework.context.support.ClassPathXmlApplicationContext; | |
public class App { | |
public static void main( String[] args ) { | |
ApplicationContext ctx = new ClassPathXmlApplicationContext("app-context.xml"); |
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
package com.jlevasseur.app; | |
import javax.jms.Queue; | |
import org.apache.activemq.command.ActiveMQQueue; | |
import org.springframework.context.ApplicationContext; | |
import org.springframework.context.support.ClassPathXmlApplicationContext; | |
public class App | |
{ |
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
<logger name="scala.slick.jdbc.JdbcBackend.statement" level="DEBUG" /> |