Skip to content

Instantly share code, notes, and snippets.

View philographer's full-sized avatar
🎯
Focusing

Philographer philographer

🎯
Focusing
View GitHub Profile
@philographer
philographer / cloudSettings
Last active May 1, 2020 05:22
iPadCloudSettings
{"lastUpload":"2020-05-01T05:22:16.543Z","extensionVersion":"v3.4.3"}
@philographer
philographer / hyper.js
Last active May 14, 2019 03:31
hyper.js 백업
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// choose either `'stable'` for receiving highly polished,
// or `'canary'` for less polished but more frequent updates
updateChannel: 'stable',
@philographer
philographer / keras_homework.py
Created May 12, 2019 12:29
민식이 과제
from keras.models import Sequential
from keras.layers import Dense
from sklearn.model_selection import train_test_split
import pandas as pd
import numpy as np
import tensorflow as tf
seed=0
np.random.seed(seed)
#!/bin/bash
#########################################
# Path
#########################################
BASE_PATH=$(dirname $0)
cd ${BASE_PATH}
export BASE_PATH=`pwd`
export ENV_PATH=/naver/search-env
export PACKAGE_PATH=${ENV_PATH}/package
@philographer
philographer / query.js
Last active May 3, 2019 03:46
Monitor User With Permission Query
db.getCollection("users").aggregate([
{
$lookup: {
localField: 'group.admin.fk',
as: 'admin',
from: 'permission_group',
foreignField: 'groupName'
}
},
{ $project: { 'admin.groupName': false, 'admin._id': false } },
@philographer
philographer / query.json
Created April 18, 2019 09:31
Monitor User With Permission Query
db.getCollection("users").aggregate([
{
"$match": { "empNo": "KR00000" }
},
{
"$lookup": {
"from": "permission_group",
"localField": "group.admin.fk",
"foreignField": "groupName",
"as": "admin"
@philographer
philographer / index.html
Created March 20, 2019 09:28
Saving a file with pure JS
<form role="form">
<h3>Saving a file with pure JS!</h3>
<p>Uses HTML5 W3C saveAs() function and the <a href="https://github.com/eligrey/FileSaver.js" target="_blank">FileSaver.js</a> polyfill for this.<br>
I didn't think this was even possible without a server but the docs say it should work in IE 10+, Sweet!</p>
<div class="form-group">
<label for="input-fileName">File name</label>
<input type="text" class="form-control" id="input-fileName" value="textFile" placeholder="Enter file name">
</div>
<div class="form-group">
<label for="textarea">Text</label>
@philographer
philographer / bash-example.md
Created February 20, 2019 01:14
Bash Script
#!/bin/bash

BASE_PATH=$(dirname $0)
cd ${BASE_PATH}
BASE_PATH=`pwd`
#!/bin/bash
set -e # If Error then exit
# Result Print
cat << EOF
===========================================================
===========================================================
=================== Installation Started ==================
===========================================================
===========================================================
@philographer
philographer / .gitignore_global
Created February 16, 2018 11:34
Global Git Ignore
.DS_Store
._.DS_Store
**/.DS_Store
**/._.DS_Store
.idea/
**/.idea/