Skip to content

Instantly share code, notes, and snippets.

View keefo's full-sized avatar
🎯
Indulging in the future of software engineering

Xu Lian keefo

🎯
Indulging in the future of software engineering
View GitHub Profile
John Doe 120 jefferson st. Riverside NJ 08075
Jack McGinnis 220 hobo Av. Phila PA 09119
John "Da Man" Repici 120 Jefferson St. Riverside NJ 08075
Stephen Tyler 7452 Terrace "At the Plaza" road SomeTown SD 91234
Blankman SomeTown SD 00298
Joan "the bone", Anne Jet 9th, at Terrace plc Desert City CO 00123
@keefo
keefo / OceanicNext.vim
Last active July 3, 2019 05:24
OceanicNext.vim
" ===============================================================
" OceanicNext
" Author: Mike Hartington
" ===============================================================
" {{{ Setup
set background=dark
hi clear
if exists("syntax_on")
@keefo
keefo / html+css+jsp.jsp
Last active June 10, 2019 01:17 — forked from PuppyRush/sample.jsp
jsp
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Guru Registration Form</title>
<style>
body {
background-image: url("img_tree.png");
@keefo
keefo / backup.bat
Created June 8, 2019 04:26 — forked from koma5/backup.bat
automated mysql dumps on windows - dumps all dbs which user sees
set MYSQLUSER=username
set MYSQLPASS=password
set BATCHFILE=C:\Temp\auto_built_sql_dump.bat
set DUMPPATH=Z:\
set DRIVE=Z:
net use %DRIVE% \\somehost\some\networkdrive /user:domain\user password
rem building time stamp
set tmp_time=%time:~-11,2%.%time:~-8,2%.%time:~-5,2%
@keefo
keefo / density.m
Created June 8, 2019 04:24 — forked from sglyon/density.m
exp performance
function [density, pts_PCn, di_min] = eval_density(data, points)
[n,d] = size(data);
n_points = size(points,1);
Datan = (data-ones(n,1)*mean(data))./(ones(n,1)*std(data));
[U,S,V] = svd(Datan,0);
PC = Datan*V;
PCn = PC./(ones(n,1)*std(PC));
Pointsn = (points-ones(n_points,1)*mean(data))./(ones(n_points,1)*std(data));
@keefo
keefo / baltimore-synagogues.geojson
Last active December 13, 2019 05:59 — forked from elipousson/baltimore-synagogues.geojson
A map of the locations of synagogues past and present based on an 2011 inventory by the Jewish Museum of Maryland.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@keefo
keefo / fail-1.cfm
Created June 8, 2019 04:16 — forked from bennadel/fail-1.cfm
The Elvis Operator vs. IsNull() In ColdFusion 11 Beta
<!--- NOTE: ColdFusion 11 was in BETA at the time of this writing. --->
<cfscript>
// Testing unscoped values.
elvis = ( theKing ?: "default" );
nully = ( isNull( theKing ) ? "default" : "false-positive" );
writeOutput( "Elvis: " & elvis & "<br />" );
writeOutput( "Nully: " & nully & "<br />" );
@keefo
keefo / hello.cob
Created June 8, 2019 04:15
cobol!
* check it out, hello world in cobol lulz
identification division.
program-id. hello.
procedure division.
display "Hi, world!".
stop run.
#include <iostream>
using namespace std;
int main()
{
int a;
int num=0;
a=9;
for (int i=0; i<a;i++){
@keefo
keefo / Dockerfile
Created June 8, 2019 04:14 — forked from lgelfan/Dockerfile
docker-in-docker docker compose with sshd
##
# Docker client with docker-compose && sshd
#
# use on a Docker host to allow you to ssh and access Docker and Compose remotely
# e.g., as part of CI/CD on a private network.
# ** Not for production use on publicly-exposed server **
#
# mount for docker host socket:
# -v /var/run/docker.sock:/var/run/docker.sock:ro
# mount for docker-compose access (optional):