Skip to content

Instantly share code, notes, and snippets.

Avatar

Rohan Roy triump0870

View GitHub Profile
View home.html
{% extends "base.html" %}
{% load staticfiles %}
{% load crispy_forms_tags %}
{% load thumbnail %}
{% block title %}{{ block.super }}Questionnaire{% endblock %}
{% block extrahead %}
<style type="text/css">
.active_green {
background-color: green !important;
View pom.xml
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>wealth</groupId>
<artifactId>wealthCore</artifactId>
<version>1.0</version>
<packaging>jar</packaging>
<name>Wealth Core</name>
View app-context.xml
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context"
xmlns:tx="http://www.springframework.org/schema/tx" xmlns:jdbc="http://www.springframework.org/schema/jdbc"
xmlns:p="http://www.springframework.org/schema/p" xmlns:encryption="http://www.jasypt.org/schema/encryption"
xsi:schemaLocation="
http://www.springframework.org/schema/jdbc http://www.springframework.org/schema/jdbc/spring-jdbc.xsd
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx.xsd
View dbconfig.properties
hibernate.dialect=org.hibernate.dialect.MySQLInnoDBDialect
hibernate.hbm2ddl=none
iifldatabaseName=bodb
jdbc.driverClassName=com.mysql.jdbc.Driver
#jdbc.url.iifldb=jdbc:mysql://192.168.1.5/bodb?createDatabaseIfNotExist=false
#jdbc.url.iifldb=jdbc:mysql://124.153.80.215/bodb?createDatabaseIfNotExist=false
#jdbc.username=iiflappuser
#jdbc.password=app@ccess
View sublime_text3
{
"font_size": 14,
"ignored_packages":
[
"Vintage"
],
"theme": "Agila.sublime-theme",
"color_scheme": "Packages/Agila Theme/Agila Oceanic Next.tmTheme",
"theme_agila_sidebar_small": true,
"theme_agila_sidebar_medium": true,
View last
class LastLogin(APIView):
def get_object(self,pk):
try:
return User.objects.get(pk=pk)
except:
return Http404
def get(self, request, pk):
obj = self.get_object(pk)
email = obj.email
View gist:6622261
codeskulptor link
1) http://www.codeskulptor.org/#user11_mzxAlacI9h_0.py
2) http://www.codeskulptor.org/#user11_mzxAlacI9h_2.py
3) http://www.codeskulptor.org/#user11_mzxAlacI9h_3.py
4) http://www.codeskulptor.org/#user11_mzxAlacI9h_4.py
5) http://www.codeskulptor.org/#user11_mzxAlacI9h_5.py
6) http://www.codeskulptor.org/#user18_s8s4rxIC27z2lcQ.py
7) http://www.codeskulptor.org/#user11_JlrHs6noLbViB6u.py
8) http://www.codeskulptor.org/#user13_cKVy6bQKuM_1.py