Skip to content

Instantly share code, notes, and snippets.

View xiy's full-sized avatar
deploying

Mark Anthony Gibbins xiy

deploying
View GitHub Profile
@xiy
xiy / keybase.md
Created November 12, 2019 10:47
keybase.md

Keybase proof

I hereby claim:

  • I am xiy on github.
  • I am aritheory (https://keybase.io/aritheory) on keybase.
  • I have a public key ASDui5FqLUjsj71sE4auCQom2v5UdyQ_ssrzEZ9vzfqJWAo

To claim this, I am signing this object:

@xiy
xiy / fonts.scss
Created March 15, 2019 16:38 — forked from bradonomics/fonts.scss
Whitney & Sentinel Fonts CSS File (base64)
@font-face {
font-family: "Whitney SSm SC A";
src: url(data:application/x-font-woff;base64,d09GRk9UVE8AACSFAA0AAAAAN7gAAQAAAAAiXAAAAikAAAaRAAAAAAAAAABDRkYgAAAIzAAAFOgAABjhSw4xdkdERUYAAB20AAAAHQAAACAApQAER1BPUwAAHdQAAALQAAALHqpjoC9HU1VCAAAgpAAAAFoAAACA6dotXU9TLzIAAAGMAAAATwAAAGBZHFc/Y21hcAAABmgAAAJOAAADoIQ7xnlnYXNwAAAhAAAAAAgAAAAIAAAAC2hlYWQAAAEwAAAANAAAADYC7N5yaGhlYQAAAWQAAAAgAAAAJAd+A49obXR4AAAhCAAAAVMAAAHg/fogQW1heHAAAAGEAAAABgAAAAYAeFAAbmFtZQAAAdwAAASKAAALyqV9lZxwb3N0AAAIuAAAABMAAAAg/7gAMnjaY2BkYGBgZHC8dFVtYTy/zVcGbuYXQBGGC5y+JTD6/9X/KszPmB2AXA4GJpAoAGwsDKh42mNgZGBgPvBfgIGBRf//1f/XmZ8xAEVQQAUAoQcHEwAAUAAAeAAAeNpjYGKSYXRlYGVgYdrD1MXAwNADoRnvMhgx/GJAAgsZmP47MDBEw/geas75QEpZUYlZ4b8FwwnmAwwfgPz5IDkmIaarDApAyAQAvV8O/gB42rVUTW/bRhAdWXJsJ7ET+5jTNA2MpJBkyVBiK6eiBgznGhsJAvRQilqJdEQusVxaYZFD7+2xhx7yO3ruD+hP6I/p2+G6puJEcYFWhLhvZ+fjvZkFiehR43dqUPX7Fv8KN+hr7Cq8QmsUetykr+jc41bNZ5U26WePb+HkN4/XaEIfPF6nzcaKxxs1fHtlu3HP4zu002SP79bwZs1ni75p7nt8v8Zhu4Z3BDep0drA7qfm9x436Lj5l8crtNV66HGTvmv1PG7VfFbpQct4fIvWW794vEZ/tn71e
@xiy
xiy / button.js
Created June 7, 2016 18:21
The crappy button - Part 4
export default class Button extends React.Component {
// ...
render() {
<TouchableOpacity>
<Text>{this.props.text}</Text>
</TouchableOpacity>
}
}
@xiy
xiy / button.js
Last active June 7, 2016 17:09
The crappy button - Part 3
render() {
<TouchableOpacity>
<Text>Button</Text>
</TouchableOpacity>
}
@xiy
xiy / button.js
Last active June 7, 2016 16:40
The crappy button - Part 2
import React, { Component } from 'react';
import {
TouchableOpacity,
StyleSheet,
Text
} from 'react-native';
export default class Button extends React.Component {
constructor(props) {
@xiy
xiy / button.js
Last active June 7, 2016 16:39
The crappy button
import React, { Component } from 'react';
import {
TouchableOpacity,
StyleSheet,
Text
} from 'react-native';
@xiy
xiy / deep_struct.rb
Last active May 11, 2016 10:36 — forked from brodock/deep_struct.rb
Hash to Struct
require 'ostruct'
class DeepStruct < OpenStruct
def initialize(hash = {})
@table = {}
@hash_table = {}
hash.each do |k, v|
recrusively_initialize(v) if v.is_a?(Array)
@xiy
xiy / rails-4-concern.sublime-snippet
Created June 16, 2014 19:29
A sublime text editor snippet to quickly create a new Rails Concern
<snippet>
<content><![CDATA[module ${1:${TM_FILENAME/(?:\A|_)([A-Za-z0-9]+)(?:\.rb)?/(?2::\u$1)/g}}
extend ActiveSupport::Concern
included do
$2
end
end]]></content>
<tabTrigger>mod</tabTrigger>
<scope>source.ruby, source.ruby.rails, source.rails</scope>
@xiy
xiy / rbenv.fish
Created December 19, 2013 10:35
rbenv functions for the fish shell, by Łukasz Niemier: https://coderwall.com/p/6hja1w
function rbenv_shell
set -l vers $argv[1]
switch "$vers"
case '--complete'
echo '--unset'
echo 'system'
command rbenv versions --bare
return
case '--unset'
@xiy
xiy / gist:5922482
Last active December 19, 2015 07:59
#define the empty variable text
text =''
#define the line_count variable as 0.
line_count = 0
#open the text file I am working with, and use the each method to iterate
#each line and place it into the variable 'line'
File.open("text.txt").each do |line|
#add 1 for each line during each iterated line. (Loop until each line is processed?)