Skip to content

Instantly share code, notes, and snippets.

View mach-kernel's full-sized avatar
😸
mrrrrow!

David Stancu mach-kernel

😸
mrrrrow!
View GitHub Profile
Section "InputClass"
MatchIsTouchpad "on"
Identifier "Touchpads"
Driver "mtrack"
Option "Sensitivity" "1"
Option "FingerHigh" "5"
Option "FingerLow" "1"
Option "IgnorePalm" "true"
Option "IgnoreThumb" "true"
Option "ThumbRatio" "75"
[alias]
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
st = status
2153 epoll_wait(9, [{EPOLLIN, {u32=31588288, u64=31588288}}], 10, -1) = 1
2153 accept(3, NULL, NULL) = 18
2153 fcntl(18, F_SETFD, FD_CLOEXEC) = 0
2153 setsockopt(18, SOL_SOCKET, SO_PASSCRED, [1], 4) = 0
2153 epoll_ctl(9, EPOLL_CTL_ADD, 18, {EPOLLIN, {u32=31588800, u64=31588800}}) = 0
2153 epoll_wait(9, [{EPOLLIN, {u32=31588800, u64=31588800}}], 10, -1) = 1
2153 recvmsg(18, {msg_name(0)=NULL, msg_iov(1)=[{"\6\0\0\0\10\0\0\0\260k\336\20i\177\0\0", 16}], msg_controllen=32, [{cmsg_len=28, cmsg_level=SOL_SOCKET, cmsg_type=SCM_CREDENTIALS, {pid=960, uid=0, gid=0}}], msg_flags=0}, 0) = 16
2153 recvfrom(18, "freezer\0", 8, 0, NULL, NULL) = 8
2153 sendto(18, "\0\0\0\0\24\0\0\0\6\242\343\1\0\0\0\0", 16, 0, NULL, 0) = 16
2153 sendto(18, "//lxc/juju-a0edf7-7\0", 20, 0, NULL, 0) = 20
<!DOCTYPE html>
<html lang="{{ page.lang | default: site.lang | default: "en" }}">
...
{% js webpacked_bundle %}
{% css dstancu %}
...
</html>
require 'skemata'
Skemata.draw :Book, OpenStruct.create(bookEdition: 1, name: 'Foo Book', pages: 42) do
bookEdition
name
pages
end
# frozen_string_literal: true
# ez auto entities
# [email protected]
module API
module Entities
class Collection < Grape::Roar::Decorator
include Roar::JSON
include Roar::Hypermedia
class << self
@mach-kernel
mach-kernel / keybase.md
Created January 24, 2017 03:39
Keybase identity verification, dstancu

Keybase proof

I hereby claim:

  • I am mach-kernel on github.
  • I am dstancu (https://keybase.io/dstancu) on keybase.
  • I have a public key whose fingerprint is 0A77 AE13 92E8 6AE6 75A3 FA57 540F FD17 0200 7D89

To claim this, I am signing this object:

http://fm.formularynavigator.com/jsonFiles/publish/11/47/providers.json ["38344"]
https://api.humana.com/v1/cms/providers-0.json ["44580"]
https://api.humana.com/v1/cms/providers-1.json ["44580"]
https://api.humana.com/v1/cms/providers-2.json ["44580"]
https://api.humana.com/v1/cms/providers-3.json ["44580"]
https://api.humana.com/v1/cms/providers-4.json ["44580"]
https://api.humana.com/v1/cms/providers-5.json ["44580"]
https://api.humana.com/v1/cms/providers-6.json ["44580"]
https://api.humana.com/v1/cms/providers-7.json ["44580"]
https://api.humana.com/v1/cms/providers-8.json ["44580"]
def calc2(a, b)
yield(a,b)
end
# this works
p calc2(5, 6) {|a,b| a+b}
# this works
calc2(5, 6) do |a, b|
p a + b
/**
* Definition for singly-linked list.
* struct ListNode {
* int val;
* ListNode *next;
* ListNode(int x) : val(x), next(NULL) {}
* };
*/
class Solution {
public: