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
/* | |
This script, when used with Google Apps Scripts will delete 500 emails and | |
can be triggered to run every minute without user interaction enabling you | |
to bulk delete email in Gmail without getting the #793 error from Gmail. | |
Configure the search query in the code below to match the type of emails | |
you want to delete | |
Browser to https://script.google.com/. | |
Start a script and paste in the code below. | |
After you past it in, save it and click the little clock looking button. |
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
/* | |
* common react, redux staff here | |
*/ | |
import {Router, createRoutes} from 'react-router'; | |
import createBrowserHistory from 'history/lib/createBrowserHistory'; | |
import rawRoutes from './routes'; | |
import store from './store'; | |
function mixStoreToRoutes(routes) { | |
return routes && routes.map(route => ({ |
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
<form remote-form="/accounts/register/" class="register pull-left"> | |
<h3>Регистрация</h3> | |
<div ng-repeat="error in errors.non_field_errors" class="alert alert-danger fade in"> | |
{{ error }} | |
</div> | |
<div class="form-group"> | |
<label>Имя</label> | |
<input remote-form-control="input.first_name" type="text" name="first_name" class="form-control"/> | |
</div> | |
<div class="form-group"> |
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
app.directive('remoteForm', function($http){ | |
function link(scope, formElement, attrs, formController) { | |
scope.input = {}; | |
scope.submit = function (){ | |
$http.post(attrs.remoteForm, scope.input) | |
.success(function(data, status, headers, config) { | |
// $window.location.reload(); | |