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
function migrateImages() { | |
$ls = Storage::disk("s3")->allFiles("/prod"); | |
foreach ($ls as $l) { | |
$newLoc = explode("/", $l); | |
if (sizeof($newLoc) == 4) { | |
Log::debug("=====> ".$l); |
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
public class Friend { | |
String name; | |
String midName; | |
Date dateOfBirth; | |
// this class has on defautl constructor, as you have not defined any construcotr; | |
// You can create objects of type Friend like this Friend f = new Friend(); | |
} |
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
com.sun.jersey.api.client.ClientHandlerException: java.net.ConnectException: Connection refused (Connection refused) | |
at com.sun.jersey.client.apache4.ApacheHttpClient4Handler.handle(ApacheHttpClient4Handler.java:187) ~[jersey-apache-client4-1.19.1.jar:1.19.1] | |
at com.sun.jersey.api.client.filter.GZIPContentEncodingFilter.handle(GZIPContentEncodingFilter.java:123) ~[jersey-client-1.19.1.jar:1.19.1] | |
at com.netflix.discovery.EurekaIdentityHeaderFilter.handle(EurekaIdentityHeaderFilter.java:27) ~[eureka-client-1.6.2.jar:1.6.2] | |
at com.sun.jersey.api.client.Client.handle(Client.java:652) ~[jersey-client-1.19.1.jar:1.19.1] | |
at com.sun.jersey.api.client.WebResource.handle(WebResource.java:682) ~[jersey-client-1.19.1.jar:1.19.1] | |
at com.sun.jersey.api.client.WebResource.access$200(WebResource.java:74) ~[jersey-client-1.19.1.jar:1.19.1] | |
at com.sun.jersey.api.client.WebResource$Builder.get(WebResource.java:509) ~[jersey-client-1.19.1.jar:1.19.1] | |
at com.netflix.discovery.shared.transport.jersey.AbstractJerseyEurekaH |
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.design.patterns.factory.Adapter; | |
/** | |
* Created by Adelin_Ghanayem on 05-Jul-17. | |
*/ | |
public class AdapterFromUsersRepositoryToMySQLUserRepository implements UsersRepository { // implements used interface by client ! | |
//compose the adaptee class/interface | |
private MySQLUserRepository mySQLUserRepository; |
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
public class Client { | |
public static void main(String[] args){ | |
Person person = newPerson().setAge(10).setSalary(100).setEyesColor("Dark").build(); | |
} | |
} |
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
public abstract class House { | |
protected Floor floor; | |
protected Walls walls; | |
protected Roof roof; | |
//getters and setters | |
} |
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
public class Person { | |
//properties ... | |
//Telescoping Constructors | |
public Person(int age) { | |
this.age = age; | |
} | |
public Person(int age, long tall) { |
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.isolation.levels.phenomensa; | |
import java.sql.Connection; | |
import java.sql.ResultSet; | |
import java.sql.SQLException; | |
import java.util.concurrent.CountDownLatch; | |
import static com.isolation.levels.ConnectionsProvider.getConnection; | |
import static com.isolation.levels.Utils.printResultSet; |
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.isolation.levels.phenomensa; | |
import java.sql.Connection; | |
import java.sql.ResultSet; | |
import java.sql.SQLException; | |
import java.util.concurrent.CountDownLatch; | |
import static com.isolation.levels.ConnectionsProvider.getConnection; | |
import static com.isolation.levels.Utils.printResultSet; |
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.isolation.levels.phenomensa; | |
import com.isolation.levels.ConnectionsProvider; | |
import java.sql.Connection; | |
import java.sql.ResultSet; | |
import java.sql.SQLException; | |
import java.util.concurrent.CountDownLatch; | |
import static com.isolation.levels.Utils.printResultSet; |
NewerOlder