Skip to content

Instantly share code, notes, and snippets.

View tjunussov's full-sized avatar

Tim TJey Jun tjunussov

View GitHub Profile
@tjunussov
tjunussov / devd.io congif
Last active November 18, 2016 10:35
devd. configurations
::devd.exe -a -p 3000 -l . http://192.168.99.1:8080
::devd.exe -a -p 3000 -l . /rest/=http://192.168.99.1:8080/rest/
devd.exe -x "{**.bat,**.md,**.xml,**.tc,,**.map}" -a -p 80 -l . /rest/=http://192.168.99.1:8080/rest/ /auth/=http://192.168.99.1:8180/auth/
devd.exe -x "**/*.bat" -x "**/*.ts" -x "**/*.map" -x "**/*.xml" -a -p 80 -l . /rest/=http://192.168.99.1:8080/rest/ /auth/=http://192.168.99.1:8180/auth/ static/assets=./assets --debug --crossdomain
require('net')
.createServer( function(socket)
{
socket.write('SSH-3.0-OpenSSH_1.2_Guard\r\n');
console.log('SSHD Noop Service - '+socket.remoteAddress );
})
.listen(22, function()
{
console.log('SSHD Noop Service - Started at 22 port')
})
// Current Context
-- current()/@href
<xsl:apply-templates select="//cd[@title=current()/@ref]"/>
// Template Matchings
-- Attribute Value StartWith
<xsl:template match="input[starts-with(@type, '$')]">
-- Tag Proxying
// html
<span style="fill:#000;">
<span ui-include="'icon.svg'"></span>
</span>
// svg inherit color
<svg fill="currentColor">
// Find and Execute recursive -maxdepth 1
find /xfaces -type f -name "*.xhtml" -execdir node /home/sp/xhtml2html/xhtml2html.js {} \;
@tjunussov
tjunussov / nginx,cheatsheet
Last active February 3, 2017 18:11
Nginx configurations
// PJAX partial or full
map $http_x_pjax $file_suffix {
default "";
true ".partial";
}
## Static html ( converted )
server {
server_name ux.domain;
listen 80;
@tjunussov
tjunussov / sublime.snippets
Created June 13, 2017 05:52
console.log, console.dir
<snippet>
<!-- put this file in /packages/User/<Folder Name>/console_log.sublime-snippet then restart your Sublime Text 2 -->
<content><![CDATA[console.log($1);$0]]></content>
<tabTrigger>cl</tabTrigger>
<scope>text.html,source.js</scope>
<description>console.log()</description>
</snippet>
<snippet>
<!-- put this in another file /packages/User/<Folder Name>/console_dir.sublime-snippet then restart your Sublime Text 2 -->
// bootsrtap row not gutters ( pading between )
row.no-gutters
// Chrome console.log coloring
console.log("%cUser %s has %d points", "color:orange; background:blue; font-size: 16pt", 'User', 100);
// Height Transition Effect - with height:auto;
book {
max-height:100px; <-- default height
@tjunussov
tjunussov / index.html
Last active June 28, 2017 20:34
Calendar multicolumn scrollable vue
<style id="jsbin-css">
html,body {
height:300px;
width:756px;
font-family:monospace;
}
/********* reseting ************/
ul,li {
padding: 0;
margin: 0;
@tjunussov
tjunussov / Vuejs Cheatsheet
Last active April 1, 2018 12:00
Vue Framework Cheatsheet
# Default webpack installation
npm i --save-dev stylus stylus-loader pug pug-loader --save bootstrap-vue vuex
# v-on on component only listens for custom evenets ( $emit("") )
<mycomp @click.native="add()"/>
# or inside component emit
<mycomp @click="add()">
<div @click="$emit('click')">