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
@import url(font-awesome.min.css); | |
@import url("https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,300italic,400,400italic"); | |
@-moz-keyframes spinner { | |
0% { | |
-moz-transform: rotate(0deg); | |
-webkit-transform: rotate(0deg); | |
-ms-transform: rotate(0deg); | |
transform: rotate(0deg); | |
} |
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
{ | |
"C++ Snippet": { | |
"prefix": "cc", | |
"body": [ | |
"#include <bits/stdc++.h> ", | |
"#include <iostream>", | |
"#include <algorithm>", | |
" ", | |
"using namespace std;", | |
" ", |
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
# coding:utf-8 | |
from elasticsearch import Elasticsearch | |
import json | |
# Define config | |
host = "127.0.0.1" | |
port = 9200 | |
timeout = 1000 | |
index = "index" |
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
# Simple Flask app. | |
from flask import Flask, g, request | |
app = Flask(__name__) | |
""" | |
Root | |
""" |
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
Using Git | |
=============== | |
Global Settings | |
----------- | |
Related Setup: https://gist.github.com/hofmannsven/6814278 | |
Related Pro Tips: https://ochronus.com/git-tips-from-the-trenches/ |
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
<html> | |
<head> | |
<title>example for joint js</title> | |
<!-- Required Scripts & css --> | |
<link rel="stylesheet" type="text/css" href="./libs/css/joint.css"/> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/3.10.1/lodash.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/backbone.js/1.3.3/backbone.js"></script> | |
<script src="./libs/joint.js"></script> | |
</head> |
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
<?xml version='1.0' encoding='utf-8'?> | |
<Server port="8005" shutdown="SHUTDOWN"> | |
<Listener className="org.apache.catalina.startup.VersionLoggerListener" /> | |
<!-- Security listener. Documentation at /docs/config/listeners.html | |
<Listener className="org.apache.catalina.security.SecurityListener" /> | |
--> | |
<!--APR library loader. Documentation at /docs/apr.html --> | |
<Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" /> | |
<!-- Prevent memory leaks due to use of particular java/javax APIs--> | |
<Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener" /> |
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
grant { | |
permission java.security.AllPermission; | |
}; |
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
#!/bin/sh | |
# | |
# /etc/init.d/tomcat8 -- startup script for the Tomcat 8 servlet engine | |
# | |
# Modified for Tomcat8 by Damanpreet Singh <daman.4880@gmail.com> | |
# | |
### BEGIN INIT INFO | |
# Provides: tomcat8 | |
# Required-Start: $local_fs $remote_fs $network | |
# Required-Stop: $local_fs $remote_fs $network |