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 / .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
<?php
define('BOT_TOKEN', 'XXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXX'); // place bot token of your bot here
function checkTelegramAuthorization($auth_data) {
$check_hash = $auth_data['hash'];
unset($auth_data['hash']);
$data_check_arr = [];
foreach ($auth_data as $key => $value) {
$data_check_arr[] = $key . '=' . $value;
@jeremyruppel
jeremyruppel / client.js
Created April 25, 2016 18:36
Testing an HTTP client: Part I
var request = require('superagent');
/**
* @constructor
*/
module.exports = Client;
function Client(api_key) {
this.params = {};
I ran Gregg's linter tool against today's sdo-stantz branch. Results follow.
schema.org/AcceptAction-126-jsonld.html: ok
schema.org/AchieveAction-37-jsonld.html: ok
schema.org/Action-35-jsonld.html: ok
schema.org/Action-36-jsonld.html: ok
schema.org/AddAction-164-jsonld.html: ok
schema.org/AddAction-165-jsonld.html: ok
schema.org/AgreeAction-49-jsonld.html: ok
schema.org/AllocateAction-125-jsonld.html: ok
@octocat
octocat / hello_world.rb
Created October 1, 2014 16:19
Hello world!
class HelloWorld
def initialize(name)
@name = name.capitalize
end
def sayHi
puts "Hello #{@name}!"
end
end
hello = HelloWorld.new("World")