This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Create a file my_log.rb in app/models | |
# Copy & paste the code below in my_log.rb | |
class MyLog | |
class << self | |
def debug(msg) | |
File.open("log/logs.txt", "a+") { | |
|file| | |
file.write(msg) | |
file.write("\n") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Philstocks Customized Theme for MarketInfo page | |
* https://my.philstocks.ph/OneScreen/MarketInfo.cshtml | |
**/ | |
.content { | |
background-color: #000; | |
} | |
.maTableSymbol { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Philstocks Customized Theme for MarketInfo page | |
* https://my.philstocks.ph/OneScreen/MarketInfo.cshtml | |
**/ | |
.gaTableSymbol, | |
.maTableSymbol, | |
.indicesTitle { | |
font-size: 0.99em; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## In your clrlogs.sh file, add this code | |
## create a symlink to /usr/local/bin | |
# <app-root> / log | |
# check if log folder is exist. | |
if [ -d "log" ] | |
then | |
echo "[clrlogs.sh] log folder found!" | |
for file in log/*.log | |
do |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dropbox stop && dbus-launch dropbox start |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name New Userscript | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author You | |
// @match https://www.investagrams.com/Chart/PSE:* | |
// @icon https://www.google.com/s2/favicons?domain=investagrams.com | |
// @grant none | |
// ==/UserScript== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Add git branch name in Terminal | |
force_color_prompt=yes | |
parse_git_branch() { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' | |
} | |
## export PS1="\u@\h \[\033[32m\]\w\[\033[33m\]\$(parse_git_branch)\[\033[00m\] >\n$ " | |
export PS1="${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\[\033[33m\]\$(parse_git_branch)\[\033[00m\] >\n$ " | |
## Git shortcuts | |
alias gitlogtree="git log -n 10 --graph --decorate -30 --all --date-order --date=format:'%Y-%m-%d %H:%M:%S' --pretty=format:'%C(cyan)%h%Creset %C(black bold)%ad%Creset%C(auto)%d %s'" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const greeting = <h1>hello world!</h1> | |
// If you have JSX code that spans across multiple lines, | |
// you can wrap it in ( and ) brackets, as follows: | |
const greeting = ( | |
<h1> | |
hello world! | |
</h1> | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Differences of ES5 and ES2015(formerly known as ES6) | |
//==================================================== | |
// ES5 | |
var braveNewWorld = function( world ) { | |
console.log( "Welcome to" + world ) | |
}; | |
// ES2015: Using Arrow Functions, let, template strings | |
let braveNewWorld = ( world ) => { | |
console.log(`Welcome to ${world}`); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"color_scheme": "Packages/Theme - Superflat Adventures/Adventure Time.tmTheme", | |
"color_scheme_r1": "Packages/Agila Theme/Agila Neon Monocyanide.tmTheme", | |
"color_scheme_r3": "Packages/Agila Theme/Agila Origin Oceanic Next.tmTheme", | |
"draw_white_space": "all", | |
"font_size": 11, | |
"ignored_packages": | |
[ | |
"Vintage" | |
], |
NewerOlder