Skip to content

Instantly share code, notes, and snippets.

🙃
idk

Joshua Kidd g33kidd

🙃
idk
Block or report user

Report or block g33kidd

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@g33kidd
g33kidd / firestore_animated_list.dart
Created Jul 23, 2019 — forked from slightfoot/firestore_animated_list.dart
Firestore Animated List implementation.
View firestore_animated_list.dart
// Copyright 2017, the Flutter project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'dart:async';
import 'dart:collection';
import 'package:cloud_firestore/cloud_firestore.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
View wsClient.go
package main
import (
"fmt"
"time"
"github.com/gorilla/websocket"
)
@g33kidd
g33kidd / app_bar.dart
Created Mar 27, 2018
Custom AppBar for flutter
View app_bar.dart
import 'package:flutter/material.dart';
// TODO: Continue investigating how to do scroll offset animation like this:
// https://dribbble.com/shots/2201752-Profile-Header-Interaction-Prototype
class CustomAppBar extends StatefulWidget {
final String title;
CustomAppBar({this.title});
@g33kidd
g33kidd / dom.cr
Created Apr 12, 2017
DOM Node Tree implementation in Crystal
View dom.cr
module DOM
module NodeType
struct Text
property string
def initialize(@string : String)
end
end
struct Element
@g33kidd
g33kidd / gitlab_ci.yml
Created Mar 13, 2017 — forked from guillaumewuip/gitlab_ci.yml
Gitlab CI to dokku
View gitlab_ci.yml
###############################################################################
# Variables #
###############################################################################
variables:
DOKKU_HOST: 'host.com'
PROJECT_NAME: 'project_name'
###############################################################################
# Cache #
###############################################################################
@g33kidd
g33kidd / flatten.ex
Last active May 18, 2016
Array Flatten
View flatten.ex
# Elixir is by far one of my Favorite programming languages so I decided to write this Flattener in Elixir.
# It may look similar to Ruby, but it most definitely is not Ruby.
defmodule Flattener do
def flatten([]), do: []
# Takes the list head and adds the tail to the end of the list
# this gets repeated for each nested list inside the list and
# keeps adding the tail of each list to the end of the flattened list.
def flatten([h|t]), do: flatten(h) ++ flatten(t)
def flatten(h), do: [h]
@g33kidd
g33kidd / deploying_phoenix_on_dokku.md
Created Jan 29, 2016 — forked from henrik/deploying_phoenix_on_dokku.md
Deploying Elixir's Phoenix Framework on Dokku.
View deploying_phoenix_on_dokku.md

Deploying Phoenix on Dokku

Worked 2015-09-08 for Phoenix 1.0.1 on Dokku 0.3.25.

These instructions assume you've set up Dokku. If not, go find a tutorial for that part. My notes for setting it up on Digital Ocean.

On your local machine, in the app's repo

Create a Dokku app:

View brunch-config-basic.js
exports.config = {
files: {
javascripts: {
joinTo: 'app.js'
},
stylesheets: {
joinTo: 'app.css'
},
templates: {
joinTo: 'app.js'
@g33kidd
g33kidd / repo_storage.ex
Last active Dec 1, 2015
custom storage module for OAuth2Ex in Elixir
View repo_storage.ex
defmodule StorageUpload.RepoStorage do
@moduledoc """
This is a storage module built based on OAuth2Ex's file storage.
The only difference here is that the token is fetched from the Repo
in the app and stored in the Repo's data store.
"""
alias StorageUpload.Repo
alias StorageUpload.Setting
@g33kidd
g33kidd / SassMeister-input-HTML.html
Created Mar 30, 2015
Generated by SassMeister.com.
View SassMeister-input-HTML.html
<div class="dropdown">
<input type="checkbox" id="dropdownToggle" />
<label for="dropdownToggle">DROPDOWN</label>
<ul class="dropdown-menu">
<li>List Item</li>
<li>List Item</li>
</ul>
</div>
You can’t perform that action at this time.