Skip to content

Instantly share code, notes, and snippets.

View CreatiCoding's full-sized avatar
❤️
Maybe busy by something

정석호 CreatiCoding

❤️
Maybe busy by something
View GitHub Profile
@CreatiCoding
CreatiCoding / github-action.ssh.yaml
Created September 30, 2022 08:33
github-action for ssh commands
name: remote ssh command
on: [push]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Deploy
run: |
https://github.com/milooy/remote-or-flexible-work-company-in-korea
@CreatiCoding
CreatiCoding / example.sh
Created November 1, 2021 11:44
echo "N files changed, M insertions(+)"
git diff HEAD --shortstat
@CreatiCoding
CreatiCoding / readme.md
Created October 27, 2021 08:14
when your account dosen't have permission of /usr/local/bin, do this.

Error: The following directories are not writable by your user:

/usr/local/bin

You should change the ownership of these directories to your user.

  sudo chown -R $(whoami) /usr/local/bin
@CreatiCoding
CreatiCoding / rancher.desktop.error.sh
Created October 24, 2021 11:02
rancher desktop 설치시 오류나면
# rancher desktop 설치시 오류나면
sudo ln -s "/Applications/Rancher Desktop.app/Contents/Resources/resources/darwin/bin/nerdctl" nerdctl
git update-index --assume-unchanged file
@CreatiCoding
CreatiCoding / index.js
Created July 18, 2021 06:25
JS 클래스와 함수
function Person(name){ this.name = name; }
Person.prototype.say = function(){ console.log(this.name); }
var creco = new Person("creco")
creco.say()
class Person2 {
constructor(name) {
this.name = name;
}
@CreatiCoding
CreatiCoding / no-cache.html
Created March 9, 2021 17:31
no-cache.html
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
<meta http-equiv="Expires" content="0" />
<meta http-equiv="Pragma" content="no-cache" />
@CreatiCoding
CreatiCoding / media-style.css
Created August 27, 2020 15:03
bootstrap media query
/* Large desktops and laptops */
@media (min-width: 1200px) {
}
/* Landscape tablets and medium desktops */
@media (min-width: 992px) and (max-width: 1199px) {
}
@CreatiCoding
CreatiCoding / scaler.js
Created July 29, 2020 01:15
img tag scaler
export default class Scaler {
constructor(el) {
this.zoom_size = 1;
this.zoom_pos = {};
this.touches_length = 0;
this.image_top = 0;
this.scale = 1;
this.init_distance = null;