These rules are adopted from the AngularJS commit conventions.
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 gulp = require('gulp'); | |
var concat = require('gulp-ngconcat'); | |
//Создадим задачу | |
gulp.task('concat', function () { | |
gulp.src('src/**/*.js') | |
.pipe(concat('app.js')) | |
.pipe(gulp.dest('./dist/')); | |
}); |
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
findPP: function (options) { | |
if (!options.Id || !options.valueToSet) | |
{ | |
console.error('spservices extensions findPP: args error'); | |
return; | |
}; | |
var $pp = $('span[id*="' + options.Id + '"]') | |
.first() | |
.wrap('<div '+options.debug ? +' style="background-color:red;" ' : ''+ '></div>'); | |
var $row = $pp |
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
<script src="[YOUR PATH]/jquery.js"></script> | |
<script src="[YOUR PATH]/jquery.SPServices-0.7.2.js"></script> | |
<script src="[YOUR PATH]/spsext.js"></script> | |
<script> | |
(function() { | |
if (!_spBodyOnLoadCalled) { | |
_spBodyOnLoadFunctions.push(pageLoad); | |
} else { | |
pageLoad(); | |
} |
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
<SharePoint:FormField runat="server" id="ff15{concat($Pos,'---YOUR UNIQUE IDENTIFIER GOES HERE---')}" ControlMode="New" FieldName="User_x0020_Roles" __designer:bind="{ddwrt:DataBind('i',concat('ff15',concat($Pos,'---YOUR UNIQUE IDENTIFIER GOES HERE---')),'Value','ValueChanged','ID',ddwrt:EscapeDelims(string(@ID)),'@User_x0020_Roles')}"/> |
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() { //Изолируем | |
if (!_spBodyOnLoadCalled) { //Используем вместо $(document).ready() | |
_spBodyOnLoadFunctions.push(pageLoad); | |
} else { | |
pageLoad(); | |
} | |
function pageLoad() { | |
var html = '<input type="text" id="message_notify" placeholder="Введите заголовок"></input>'+ | |
'<br/><br/>'+ |
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
package quests; | |
import java.util.HashMap; | |
import java.util.Map; | |
import java.util.concurrent.ConcurrentHashMap; | |
import l2f.commons.util.Rnd; | |
import l2f.gameserver.model.instances.NpcInstance; | |
import l2f.gameserver.model.quest.Quest; | |
import l2f.gameserver.model.quest.QuestState; |
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
# Ask for the user password | |
# Script only works if sudo caches the password for a few minutes | |
sudo true | |
# Install kernel extra's to enable docker aufs support | |
sudo apt-get -y install linux-image-extra-$(uname -r) | |
# Add Docker PPA and install latest version | |
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9 | |
sudo sh -c "echo deb https://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list" |
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
#!/bin/sh | |
mkdir /home/bitnami/backups/ | |
export BACKUP_FILE=/home/bitnami/backups/db-backup.sql.gz | |
export DATABASE_SCHEMA_NAME=--all-databases | |
export AZURE_CONTAINER=YOUR_VALUE_HERE | |
export AZURE_NAME=YOUR_VALUE_HERE | |
export AZURE_KEY=YOUR_VALUE_HERE | |
export AZURE_BLOB_NAME=db-production-$(date +%Y%m%d%H%M%S).sql.gz |
OlderNewer