Skip to content

Instantly share code, notes, and snippets.

View htr3n's full-sized avatar

Alex T. htr3n

View GitHub Profile
/* https://medium.com/@uiuxlab/the-most-used-responsive-breakpoints-in-2017-of-mine-9588e9bd3a8a */
/* a) The Standard Breakpoints. Working with fluid images. */
@media all and (max-width: 1690px) { }
@media all and (max-width: 1280px) { }
@media all and (max-width: 980px) { }
@media all and (max-width: 736px) { }
@media all and (max-width: 480px) { }

Keybase proof

I hereby claim:

  • I am htr3n on github.
  • I am htr3n (https://keybase.io/htr3n) on keybase.
  • I have a public key ASC_QkuVEhTV29hXBa4o6V__M0zHGF5PPqmFsI7xH82S1go

To claim this, I am signing this object:

@htr3n
htr3n / remove-git-submodule.md
Last active July 27, 2018 01:18
Remove git submodule
const htmlmin = require("gulp-htmlmin");
//...
gulp.task("minify-html", function(done) {
let publicFolder = "./public";
let html = publicFolder + "/**/*.html";
let css = publicFolder + "/**/*.css";
let js = publicFolder + "/**/*.js";
let dest = "./dist";
log("Minifying HTML/CSS/JS in '" + publicFolder + "' to '" + dest + "'");
gulp.src(publicFolder + "/**")
/*
https://stackoverflow.com/a/37832318/339302
*/
.rainbow2 {
background-image: -webkit-linear-gradient(left, #E0F8F7, #585858, #fff); /* For Chrome and Safari */
background-image: -moz-linear-gradient(left, #E0F8F7, #585858, #fff); /* For old Fx (3.6 to 15) */
background-image: -ms-linear-gradient(left, #E0F8F7, #585858, #fff); /* For pre-releases of IE 10*/
background-image: -o-linear-gradient(left, #E0F8F7, #585858, #fff); /* For old Opera (11.1 to 12.0) */
background-image: linear-gradient(to right, #E0F8F7, #585858, #fff); /* Standard syntax; must be last */
color:transparent;
package io.github.htr3n.springjdbcsimple.entity;
public class Customer {
private Integer id;
private String name;
private String email;
public Integer getId() {
return id;
}
@RestController
class HelloWorld {
@RequestMapping("/")
public String hello(){
return "Hello World!";
}
}
@htr3n
htr3n / walk.py
Last active April 22, 2019 00:57
Python -- traverse a folder
import os
for dirname, dirnames, filenames in os.walk('.'):
# print path to all subdirectories first.
for subdirname in dirnames:
print(os.path.join(dirname, subdirname))
# print path to all filenames.
for filename in filenames:
print(os.path.join(dirname, filename))
@htr3n
htr3n / termite-install.sh
Created August 19, 2019 05:29
Debian/Ubuntu-specific termite installation script
#!/usr/bin/env sh
sudo apt-get install -y \
git \
g++ \
libgtk-3-dev \
gtk-doc-tools \
gnutls-bin \
valac \
intltool \
@htr3n
htr3n / cloudSettings
Last active November 10, 2020 23:43
VSCode/Codium settings
{"lastUpload":"2020-11-10T23:43:02.343Z","extensionVersion":"v3.4.3"}