$ rails g model User
belongs_to
has_one
/** | |
* Metni url'de kullanılabilir hale çevirir. Boşluklar tireye çevrilir, | |
* alfanumerik olmayan katakterler silinir. | |
* | |
* Transform text into a URL path slug(with Turkish support). | |
* Spaces turned into dashes, remove non alnum | |
* | |
* @param string text | |
*/ | |
slugify = function(text) { |
$ = jQuery | |
TRANSFORM_TYPES = ['PUT', 'POST', 'DELETE'] | |
$.activeTransforms = 0 | |
$(document).ajaxSend (e, xhr, settings) -> | |
return unless settings.type in TRANSFORM_TYPES | |
$.activeTransforms += 1 |
$ = jQuery | |
queues = {} | |
running = false | |
queue = (name) -> | |
name = 'default' if name is true | |
queues[name] or= [] | |
next = (name) -> |
angular.module('app.utils.services', []). | |
factory('slugify', function () { | |
return function(text){ | |
if (!text) return null; | |
var trMap = { | |
'çÇ': 'c', | |
'ğĞ': 'g', | |
'şŞ': 's', | |
'üÜ': 'u', | |
'ıİ': 'i', |
This guide assumes that you recently run brew upgrade postgresql
and discovered to your dismay that you accidentally bumped from one major version to another: say 9.3.x to 9.4.x. Yes, that is a major version bump in PG land.
First let's check something.
brew info postgresql
The top of what gets printed as a result is the most important:
1. hivemq.com/try-out | |
2. cloudmqtt.com | |
3. iot.eclipse.org | |
4. test.mosquitto.org | |
5. dev.rabbitmq.com | |
6. broker.mqttdashboard.com | |
7. q.m2m.io | |
8. mqtt.simpleml.com | |
9. mqtt.dioty.co | |
10. dioty.co |
# frozen_string_literal: true | |
require 'rspec/expectations' | |
# Example Usage; expect(response).to have_http_header('Auth-Token') | |
RSpec::Matchers.define :have_http_header do |expected_header| | |
match do |response| | |
response.headers.keys.include? expected_header | |
end |