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
(ns abhimata-backend.core | |
(:gen-class) | |
(:import org.postgresql.util.PGobject) | |
(:require [cemerick.friend :as friend :as friend] | |
(cemerick.friend [workflows :as workflows] | |
[credentials :as creds]) | |
[compojure.core :as compojure | |
:refer (GET POST ANY defroutes)] | |
[clojure.java.jdbc :as jdbc] | |
[ring.adapter.jetty :as jetty] |
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
(defn html1 [] | |
;;(dom/destroy! (dom/by-id "content")) | |
(dom/set-inner-html! (dom/by-id "idofhtml") | |
"<h1> lorem ipsum </h1>")) | |
(defn ^:export init [] | |
(when (and js/document | |
(.-getElementById js/document)) | |
(ev/listen! (dom/by-id "link1") :click html1) | |
(ev/listen! (dom/by-id "link2") :click html2) |
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
#include "A.h" | |
#include <iostream> | |
using namespace std; | |
A::A(){ | |
cout<<"ctor default A"<<endl; | |
n = 0; | |
} | |
A::A(int nn){ |
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
(def data (read-string (slurp directory-content-1))) | |
(defn count-published [] | |
(count (filter #(= "published" (get % :publicity)) data))) | |
(defn count-all [] | |
(count data)) |
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 Square { | |
private int side = 5; | |
public int getArea() { | |
return side * side; | |
} | |
public int getPerimeter() { | |
return side * 4; |
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 Square { | |
private int side = 5; | |
public int getArea() { | |
return side * side; | |
} | |
public int getPerimeter() { | |
return side * 4; |
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 Square { | |
private int side = 5; | |
public int getArea() { | |
return side * side; | |
} | |
public int getPerimeter() { | |
return side * 4; |
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 Student { | |
private String studentId; | |
private String address; | |
private Date studentDayOfBirth; | |
public void save() { | |
String objectStr = MyUtils.serializeIntoAString(this); | |
Connection connection = null; | |
Statement statement = null; | |
try { |
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 Student { | |
private String studentId; | |
private String address; | |
private Date studentDayOfBirth; | |
public void save() { | |
new StudentRepository.save(this); | |
} | |
public String getStudentId() { |
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 HealthInsuranceCustomerProfile { | |
public boolean isLoyalCustomer() { | |
return true; | |
} | |
} |
OlderNewer