Skip to content

Instantly share code, notes, and snippets.

View daryllxd's full-sized avatar
👨‍🔬
Do not fear failure but rather fear not trying.

Daryll Santos daryllxd

👨‍🔬
Do not fear failure but rather fear not trying.
View GitHub Profile
{
"about": "Aboutsss the website",
"footer.icons_attribution": "Icons created by prettycons - Flaticon",
"head.title": "Evolution Chamber",
"head.title.about": "About page",
"head.title.repos": "Repos page",
"header.select_language": "Select language ({{language}})",
"header.title": "Better every day",
"language.en": "English",
"language.es": "Spanish",

Keybase proof

I hereby claim:

To claim this, I am signing this object:

Keybase proof

I hereby claim:

To claim this, I am signing this object:

#!/bin/bash
set -x
DATABASE_DUMP_FILE=wew.sql
rm $DATABASE_DUMP_FILE
pgrep ruby > /dev/null
if [ $? -eq 0 ]; then
killall -9 ruby
#!/usr/bin/env ruby
require 'english'
require 'rubocop'
require 'rb-readline'
require 'pry'
cached_changes = `git diff --cached`
forbidden_words = ['binding.pry', 'console.log', 'debugger', 'byebug', '!important']
@daryllxd
daryllxd / hehe.exs
Created March 27, 2017 10:13
elixir
fizzbuzz = fn (a, b, c) ->
case { a, b, c } do
{ 0, 0, _ } -> "fizzbuzz"
{ 0, _, _ } -> "fizz"
{ _, 0, _ } -> "buzz"
_ -> c
end
end
rem_fiz = fn(num) ->
HaybaDesu -- AirBnb clone
Purely back-end app, JSON only.
- 1st Part -- Hosts/adding properties
- Hosts Table - Email, Password, FirstName, LastName, Location, ImageUrl
- Host has_many Accomodations
- Accomodations Table - Name, Location, Description, Status (Unbooked or Occupied)
- An Accomodation has_many AccomodationPhotos
- AccomodationPhotos Table - ImageUrl (required), Caption (not required, but if none was generated, save as "Caption#{AccomodationPhoto.Id}"
@daryllxd
daryllxd / gist:a1c5886a18b8fa98c93b42be52c938d3
Last active March 21, 2017 07:26
Assignment - MeetLive
App Name: MeetLive
- Use database: MySQL
- Use CSS Framework: Bootstrap
- View to see all users (/users)
- Individual user view- must see interests (/users/:user_id/)
- Must be able to create User (through JSON)
- Must be able to update User attributes (through JSON)
- User must be able to add Interests (through JSON)
- User must be able to delete Interests (through JSON)
@daryllxd
daryllxd / pre-commit, ruby + rubocop
Last active February 28, 2017 12:47 — forked from adillera/pre-commit
Pre-commit hook. Add this to your .git/hooks to be reminded if you placed a debugger somewhere. Add file types in FILES variable and the forbidden texts in FORBIDDEN
#!/usr/bin/env ruby
require 'english'
require 'rubocop'
cached_changes = `git diff --cached`
forbidden_words = ['binding.pry', 'console.log', 'debugger', 'byebug', '!important']
if forbidden_words.any? { |word| cached_changes.include?(word) }
puts "Looks like you are trying to commit something (any one of `#{forbidden_words.join(', ')}`) you shouldn't. Please fix your diff, or run 'git commit --no-verify' to skip this check, if you must."
@daryllxd
daryllxd / # openssl - 2016-10-21_20-04-21.txt
Created October 21, 2016 12:06
openssl on macOS 10.8.5 - Homebrew build logs
Homebrew build logs for openssl on macOS 10.8.5
Build date: 2016-10-21 20:04:21