This file contains hidden or 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
History.Adapter.bind window, 'statechange', -> | |
$.ajax | |
url: url | |
type: "GET" | |
dataType: "script" | |
This file contains hidden or 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
@cloudinary_init = -> | |
$('.cloudinary-fileupload').each -> | |
previewer = $(this).closest(".assets_fields").find(".preview") | |
$(this).fileupload( | |
dropZone: '#direct_upload' | |
autoUpload: true | |
).on( "fileuploadprogress", (e, data) -> | |
# shortened | |
return | |
).on( "fileuploadadd", (e,data) -> |
This file contains hidden or 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
1) Admin sites User is redirected to sites#new and creates one after first login | |
Failure/Error: visit "/users/sign_in" | |
ArgumentError: | |
wrong number of arguments (0 for 1..2) | |
# /Volumes/Untitled/Users/administrateur/.rvm/gems/ruby-2.2.2/bundler/gems/devise-643144584684/lib/devise/test_helpers.rb:48:in `sign_in' | |
# /Volumes/Untitled/Users/administrateur/.rvm/gems/ruby-2.2.2/bundler/gems/devise-643144584684/lib/devise/parameter_sanitizer.rb:74:in `sanitize' | |
# /Volumes/Untitled/Users/administrateur/.rvm/gems/ruby-2.2.2/bundler/gems/devise-643144584684/app/controllers/devise/sessions_controller.rb:35:in `sign_in_params' | |
# /Volumes/Untitled/Users/administrateur/.rvm/gems/ruby-2.2.2/bundler/gems/devise-643144584684/app/controllers/devise/sessions_controller.rb:9:in `new' | |
# /Volumes/Untitled/Users/administrateur/.rvm/gems/ruby-2.2.2/gems/actionpack-5.0.0.beta1/lib/action_controller/metal/basic_implicit_render.rb:4:in `send_action' | |
# /Volumes/Untitled/Users/admini |
This file contains hidden or 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
GIT | |
remote: git://github.com/plataformatec/devise.git | |
revision: ba5dd0a41a7aa0dbc674819f2772aedf50171084 | |
branch: 3-stable | |
specs: | |
devise (3.5.3) | |
bcrypt (~> 3.0) | |
orm_adapter (~> 0.1) | |
railties (>= 3.2.6, < 5) | |
responders |
This file contains hidden or 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
.slides { | |
height: 100%; | |
overflow: hidden; | |
position: relative; | |
z-index: 0; | |
} | |
.slides-item { | |
background-position: 50% 50%; | |
background-size: cover; | |
bottom: 0; |
This file contains hidden or 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; | |
server_name xyz.com; | |
root /var/www/xxx/current/dist; | |
index index.html; | |
location / { | |
auth_basic "Restricted"; | |
auth_basic_user_file /etc/nginx/.htpasswd; | |
try_files $uri @prerender; | |
} |
This file contains hidden or 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
{ | |
"main": "client.js", | |
"scripts": { | |
"test": "echo \"Error: no test specified\" && exit 1", | |
"clean": "rm -rf lib", | |
"watch-js": "./node_modules/.bin/babel src -d lib --experimental -w", | |
"dev-server": "node lib/webpack.config.common", | |
"server": "node lib/server.js", | |
"dev": "npm run watch-js & npm run dev-server & npm run server", | |
"build": "npm run clean && ./node_modules/.bin/babel src -d lib --experimental", |
This file contains hidden or 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(t, e, n) { | |
"use strict"; | |
var r = n(37), | |
i = n(! function() { | |
var t = new Error('Cannot find module "localStorage"'); | |
throw t.code = "MODULE_NOT_FOUND", t | |
}()); | |
t.exports = { | |
request: function(t, e) { | |
if (console.log(null === i.getItem(e)), null === i.getItem(e)) { |
This file contains hidden or 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
var path = require('path'); | |
var node_modules_dir = path.resolve(__dirname, 'node_modules'); | |
var config = { | |
entry: path.resolve(__dirname, 'src/client.js'), | |
output: { | |
path: path.resolve(__dirname, 'public/js'), | |
filename: 'bundle.js' | |
}, | |
resolve: { |
This file contains hidden or 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
/* okvideo by okfocus ~ v2.3.2 ~ https://github.com/okfocus/okvideo */ | |
function vimeoPlayerReady(){options=jQuery(window).data("okoptions");var a=jQuery("#okplayer")[0];player=$f(a),window.setTimeout(function(){jQuery("#okplayer").css("visibility","visible")},2e3),player.addEvent("ready",function(){OKEvents.v.onReady(),OKEvents.utils.isMobile()?OKEvents.v.onPlay():(player.addEvent("play",OKEvents.v.onPlay),player.addEvent("pause",OKEvents.v.onPause),player.addEvent("finish",OKEvents.v.onFinish)),player.api("play")})}function onYouTubePlayerAPIReady(){options=jQuery(window).data("okoptions"),player=new YT.Player("okplayer",{videoId:options.video?options.video.id:null,playerVars:{autohide:1,autoplay:0,disablekb:options.keyControls,cc_load_policy:options.captions,controls:options.controls,enablejsapi:1,fs:0,modestbranding:1,origin:window.location.origin||window.location.protocol+"//"+window.location.hostname,iv_load_policy:options.annotations,loop:options.loop,showinfo:0,rel:0,wmode:"opaque",hd:options.hd},event |