start new:
tmux
start new with session name:
tmux new -s myname
%s/<!--\_.\{-}-->//g |
<%@ page language="java" contentType="text/html; charset=UTF-8" | |
pageEncoding="UTF-8"%> | |
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Insert title here</title> | |
<style> | |
.inp-field { |
# Search "Startup Applications" in App launcher | |
# Under name: Auto Screenshot Taker | |
# Under Command: /usr/bin/python3 /home/ajinkya/Documents/Ajinkya/Freelancing/screenshots.py | |
# Under Comment: Auto Screenshot Taker | |
# Now the script | |
# import py auto gui |
interface Deletable { | |
} | |
class Entity implements Deletable { | |
// implementation details | |
} | |
class ShapeDao extends Entity { | |
// other dao methods | |
public boolean delete(Object object) { |
import java.lang.annotation.*; | |
@Retention(RetentionPolicy.RUNTIME) | |
@Target(ElementType.TYPE) | |
@Inherited | |
@interface Deletable { | |
} | |
@Deletable | |
class Entity { |
import pandas as pd | |
from sqlalchemy import create_engine | |
# follows django database settings format, replace with your own settings | |
DATABASES = { | |
'production':{ | |
'NAME': 'dbname', | |
'USER': 'user', | |
'PASSWORD': 'pass', | |
'HOST': 'rdsname.clqksfdibzsj.us-east-1.rds.amazonaws.com', |
class Website { | |
const Website(this.url); | |
final String url; | |
} | |
void main() { | |
final Website website = Website("Stackoverflow"); | |
print(website == Website("Stackoverflow")); // Prints false | |
} |
abstract class LoginState {} | |
class LoginLoadingState extends LoginState{} | |
class LoginSuccessState extends LoginState{} | |
class LoginFailureState extends LoginState{} | |
void handleLoginState(LoginState state) { | |
switch(state) { | |
case LoginLoadingState(): | |
print('Logging in...'); // Handle loading state |