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.assetUpload.events( | |
'drop #asset-upload-dropzone': (e) -> | |
e.stop() | |
$(e.target).removeClass 'dropzone-hover' | |
new AssetUpload(e) | |
'dragenter #asset-upload-dropzone': (e) -> | |
e.stop() | |
$(e.target).addClass 'dropzone-hover' |
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
find . -name "*.css" -o -name "*.less" -exec grep -oe '\#[A-Fa-f0-9]\{1,6\}' {} \; | sort|uniq -c > hashfiles.txt | |
cat hashfiles.txt | sort | uniq -c | sort | sed 's/(\d) /$1 /' |
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
var express = require('express'), | |
app = express(), | |
conf = require('./convict.conf.js'); | |
console.log(conf.get('env')); | |
app.use(function(req, res, next) { | |
console.log('%s %s', req.method, req.url); | |
next(); | |
}); |
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
<?php | |
namespace CDE\TestBundle\Base; | |
use FOS\UserBundle\Model\User; | |
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase; | |
use Symfony\Component\BrowserKit\Cookie; | |
use Symfony\Component\BrowserKit\CookieJar; | |
use Symfony\Component\HttpFoundation\Request; |
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
alter table wp_ak_twitter convert to character set utf8 collate utf8_general_ci; | |
alter table wp_banner convert to character set utf8 collate utf8_general_ci; | |
alter table wp_commentmeta convert to character set utf8 collate utf8_general_ci; | |
alter table wp_comments convert to character set utf8 collate utf8_general_ci; | |
alter table wp_links convert to character set utf8 collate utf8_general_ci; | |
alter table wp_ngg_album convert to character set utf8 collate utf8_general_ci; | |
alter table wp_ngg_gallery convert to character set utf8 collate utf8_general_ci; | |
alter table wp_ngg_pictures convert to character set utf8 collate utf8_general_ci; | |
alter table wp_options convert to character set utf8 collate utf8_general_ci; | |
alter table wp_pollsa convert to character set utf8 collate utf8_general_ci; |
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
angular.module('ClientSuccess.services').factory 'fileService', (authService, $q, $rootScope)-> | |
service = {} | |
service.uploadAvatar = (file) -> | |
deferred = $q.defer() | |
apiAuth = authService.enableAuth() | |
query = | |
binary: null | |
id: null | |
postIt = () -> |
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
'use strict'; | |
angular.module('awesomeApp') | |
.service('UserService', function UserService($q, $firebase, $firebaseSimpleLogin, EnvironmentService, Restangular) { | |
var firebaseEndpoint = EnvironmentService.getFirebase(), | |
firebase = new Firebase(firebaseEndpoint), | |
firebaseSimpleLogin = $firebaseSimpleLogin(firebase), | |
getUser = function (userId) { | |
var userObject, | |
promise; |
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
diff --git a/Makefile b/Makefile | |
index 65673b1..5503fd2 100644 | |
--- a/Makefile | |
+++ b/Makefile | |
@@ -18,7 +18,7 @@ owncloud: dovecot | |
cd owncloud; docker build -t owncloud:7.0.2 . | |
run-dovecot: | |
- docker run -d -p 0.0.0.0:25:25 -p 0.0.0.0:587:587 -p 0.0.0.0:143:143 -v /srv/vmail:/srv/vmail dovecot:2.1.7 | |
+ docker run -d -p 0.0.0.0:25:25 -p 0.0.0.0:587:587 -p 0.0.0.0:143:143 -v /srv/vmail:/srv/vmail -v /ssl:/ssl dovecot:2.1.7 |
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
<html> | |
<head> | |
<title>Mini Project</title> | |
<script src="env.js"></script> | |
</head> | |
<body> | |
<div ng-app="pickleApp"> | |
<div ng-controller="pickleController"> | |
<form name="authForm"> |
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
<!doctype html> | |
<html class="no-js"> | |
<head> | |
<meta charset="utf-8"> | |
<title></title> | |
<meta name="description" content=""> | |
<meta name="viewport" content="width=device-width"> | |
<!-- Place favicon.ico and apple-touch-icon.png in the root directory --> | |
<!-- build:css(.) styles/vendor.css --> | |
<!-- bower:css --> |