Skip to content

Instantly share code, notes, and snippets.

View js1darren's full-sized avatar
💭
I may be slow to respond.

js1darren

💭
I may be slow to respond.
View GitHub Profile
@js1darren
js1darren / hello_world.rb
Created November 12, 2023 14:29 — forked from octocat/hello_world.rb
Hello world!
class HelloWorld
def initialize(name)
@name = name.capitalize
end
def sayHi
puts "Hello #{@name}!"
end
end
hello = HelloWorld.new("World")
@js1darren
js1darren / test.cs
Created November 12, 2023 13:15 — forked from octocat/test.cs
require("./rx");
var fs = require("fs");
for(var k in fs) {
exports[k] = fs[k];
}
exports.rename = function(path1, path2) {
var subject = new Rx.AsyncSubject();
var handler = function(err) {
if (err)
{
# Note: ~/.ssh/environment should not be used, as it
# already has a different purpose in SSH.
env=~/.ssh/agent.env
# Note: Don't bother checking SSH_AGENT_PID. It's not used
# by SSH itself, and it might even be incorrect
# (for example, when using agent-forwarding over SSH).
agent_is_running() {
@js1darren
js1darren / .git-commit-template
Created July 30, 2023 04:12 — forked from zakkak/.git-commit-template
This commit message template that helps you write great commit messages and enforce it across your team.
# [<tag>] (If applied, this commit will...) <subject> (Max 72 char)
# |<---- Preferably using up to 50 chars --->|<------------------->|
# Example:
# [feat] Implement automated commit messages
# (Optional) Explain why this change is being made
# |<---- Try To Limit Each Line to a Maximum Of 72 Characters ---->|
# (Optional) Provide links or keys to any relevant tickets, articles or other resources
# Example: Github issue #23