Skip to content

Instantly share code, notes, and snippets.

Soichi Saito sousousore1

Block or report user

Report or block sousousore1

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
@sousousore1
sousousore1 / client.js
Last active Jul 23, 2018
How to connect to actioncable server via actioncable client of npm package when using devise_token_auth gem.
View client.js
import ActionCable from 'actioncable'
const buildUrl = (url, parameters) {
var qs = ''
for (var key in parameters) {
var value = parameters[key]
qs += encodeURIComponent(key) + '=' + encodeURIComponent(value) + '&'
}
if (qs.length > 0) {
qs = qs.substring(0, qs.length - 1)
View gist:47fe83fa705d70037e26
// Source: https://groups.google.com/forum/#!topic/angular/hVrkvaHGOfc
// jsFiddle: http://jsfiddle.net/pkozlowski_opensource/PxdSP/14/
// author: Pawel Kozlowski
var myApp = angular.module('myApp', []);
//service style, probably the simplest one
myApp.service('helloWorldFromService', function() {
this.sayHello = function() {
return "Hello, World!"
@sousousore1
sousousore1 / dabblet.css
Created Feb 10, 2012
The first commented line is your dabblet’s title
View dabblet.css
/**
* The first commented line is your dabblet’s title
*/
background: #0f0;
background: linear-gradient(45deg, #f06, yellow);
min-height:100%;
You can’t perform that action at this time.