This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defmodule LiveWeb.Downvote do | |
use LiveWeb, :live_component | |
alias Live.FAQs | |
@impl true | |
def update(assigns, socket) do | |
{:ok, assign(socket, assigns)} | |
end | |
@impl true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<div> | |
<v-row class="mt-n8" v-for="(stream, index) in streams" :key="index"> | |
<v-col cols="12" lg="5" md="5" sm="12"> | |
<v-select | |
:items="shiftMetadataNames" | |
:item-text="'name'" | |
v-model="stream.shiftMetadataName" | |
:name="`streams[${index}][shiftMetadataName]`" | |
return-object |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80; | |
listen [::]:80; | |
root /home/username/sites/laravelappdirectory/public; | |
index index.php index.htm index.nginx-debian.html; | |
server_name servername.test www.servername.test; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
'use strict'; | |
var dashboardModels = angular.module('dashboardModels', ['ngResource']); | |
dashboardModels.factory('DashboardStats', ['$resource', '$http', function($resource, $http) { | |
return { | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h2>Project Profile Form</h2> | |
<md-content class="md-default-theme"> | |
<div class="spacer"></div> | |
<form name="form" class="ab-form" layout="column" novalidate> | |
<md-content layout-padding layout="row"> | |
<md-input-container flex> | |
<input type="text" | |
name="name" | |
placeholder="Vote Name" | |
ng-model="report.name" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="new-button md-fab lock-size" | |
layout="row" | |
layout-align="center center" | |
ng-cloak> | |
<md-fab-speed-dial md-open="isOpen" | |
md-direction="{{ selectedDirection }}" | |
ng-class="selectedMode"> | |
<md-fab-trigger> | |
<md-button aria-label="menu" class="md-fab md-primary"> | |
<ng-md-icon icon="menu"</ng-md-icon> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require_relative 'boot' | |
require 'rails/all' | |
# Require the gems listed in Gemfile, including any gems | |
# you've limited to :test, :development, or :production. | |
Bundler.require(*Rails.groups) | |
module AntiPlag | |
class Application < Rails::Application |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
``` | |
def add_uniq number | |
# convert to a character array | |
# return only unique charachars to a new array | |
# looop through each and add | |
new_number = number.to_s.chars | |
unique = new_number.uniq | |
sum = 0 | |
unique.each do |x| |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Solarized Dark | |
For use with Jekyll and Pygments | |
http://ethanschoonover.com/solarized | |
SOLARIZED HEX ROLE | |
--------- -------- ------------------------------------------ | |
base03 #002b36 background | |
base01 #586e75 comments / secondary content |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module ActiveRecord | |
class Relation | |
def pluck_multiple(*args) | |
args.map! do |column_name| | |
if column_name.is_a?(Symbol) && column_names.include?(column_name.to_s) | |
"#{connection.quote_table_name(table_name)}.#{connection.quote_column_name(column_name)}" | |
else | |
column_name.to_s | |
end | |
end |
NewerOlder