Skip to content

Instantly share code, notes, and snippets.

Avatar
:shipit:
here and there

Horie Issei is2ei

:shipit:
here and there
View GitHub Profile
@is2ei
is2ei / headless-cms-archive.json
Created Dec 19, 2019
HEADLESSCMS.ORG DATA ARCHIVE
View headless-cms-archive.json
{"timestamp":1576799931770,"data":{"abecms":[{"timestamp":1576799931770,"stars":138,"forks":28,"issues":34}],"agility-cms":[{"timestamp":1576799931770,"followers":1828}],"any-json-cms":[{"timestamp":1576799931770,"stars":25,"forks":1,"issues":0}],"appernetic":[{"timestamp":1576799931770,"followers":2890}],"b2evolution-cms":[{"timestamp":1576799931770,"followers":1016,"stars":118,"forks":51,"issues":7}],"bloomreach":[{"timestamp":1576799931770,"followers":11795}],"bowtie":[{"timestamp":1576799931770,"followers":8}],"butter-cms":[{"timestamp":1576799931770,"followers":541}],"canner":[{"timestamp":1576799931770,"stars":2525,"forks":136,"issues":41}],"cloudcannon":[{"timestamp":1576799931770,"followers":1070}],"cloud-cms":[{"timestamp":1576799931770,"followers":266}],"cockpit":[{"timestamp":1576799931770,"followers":981,"stars":4246,"forks":425,"issues":153}],"coisas":[{"timestamp":1576799931770,"stars":275,"forks":24,"issues":3}],"comfortable":[{"timestamp":1576799931770,"followers":46}],"contenta":[{"timestamp"
@is2ei
is2ei / .gitconfig
Created Jul 25, 2017 — forked from pksunkara/config
Sample of git config file (Example .gitconfig)
View .gitconfig
[user]
name = Pavan Kumar Sunkara
email = pavan.sss1991@gmail.com
[core]
editor = vim
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol
excludesfile = ~/.gitignore
[sendemail]
smtpencryption = tls
smtpserver = smtp.gmail.com
View swap_every_two_adjacent.rb
class Node
attr_accessor :value, :next_node
def initialize(value, next_node = nil)
@value = value
@next_node = next_node
end
def to_s
"#{value} -> #{next_node.to_s}"
View btree.rb
class BinaryTree
attr_accessor :payload, :left, :right
def initialize(payload, left, right)
@payload = payload
@left = left
@right = right
end
end
View tree_traversal.rb
class Tree
attr_accessor :payload, :children
def initialize(payload, children)
@payload = payload
@children = children
end
end
def depth_first_search(node, target)
View collatz.rb
def collatz(num)
return 1 if num == 1
len=1
while num != 1
if num % 2 == 0
num /= 2
else
num = 3 * num + 1
end
View fibonacci.rb
def recursive_fib(num, i=2, current=1, previous=1)
return 0 if num == 0
return 1 if num == 1
return 1 if num == 2
return current if num == i
_next = current + previous
recursive_fib(num, i+1, _next, current)
end
View luhn.rb
module Luhn
def self.is_valid?(number)
# WRITE YOUR SOLUTION HERE
sum = 0
number.to_s.split("").reverse.each_with_index do |digit, i|
digit = digit.to_i
if (i+1) % 2 == 0
digit *= 2
if digit >= 10
digit -= 9
View linked_list_02.rb
class LinkedListNode
attr_accessor :value, :next_node
def initialize(value, next_node=nil)
@value = value
@next_node = next_node
end
end
def print_values(list_node)
View linked_list_01.rb
class LinkedListNode
attr_accessor :value, :next_node
def initialize(value, next_node=nil)
@value = value
@next_node = next_node
end
end
class Stack
You can’t perform that action at this time.