View d3stryr-3stripes.php
<html>
<head>
<meta charset="UTF-8">
<?php $debug=False; ?>
<title>d3stryr 3stripes</title>
<script>
function setCookie(cname, cvalue, exdays) {
var d = new Date();
d.setTime(d.getTime() + (exdays*24*60*60*1000));
var expires = "expires="+d.toUTCString();
View popular_articles_query.rb
View games_controller.rb
=begin
This is controller for Game model, which belonged to Event model(board gaming event).
I used pundit for authorization and devise for authentication.
There is a methode search, which uses service object.
Search method looks for board games in database of http://www.boardgamegeek.com.
=end
class GamesController < ApplicationController
before_action :authenticate_user!, except: [:show]
before_action :set_event
View what' loop
<?php
for ($leap = 2004; $leap < 2050; $leap = $leap + 4) {
echo "<p>$leap</p>";
}
?>
View WindowApp_FormChanging_.idea_compiler.xml
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="CompilerConfiguration">
<resourceExtensions />
<wildcardResourcePatterns>
<entry name="!?*.java" />
<entry name="!?*.form" />
<entry name="!?*.class" />
<entry name="!?*.groovy" />
<entry name="!?*.scala" />
View antevenio.js
var AntevenioApp = (function() {
var loadScript = function() {
var script = document.createElement('script');
script.type = 'text/javascript';
script.src = 'https://afiliacion.net/p.ashx?o=360&e=120&f=js&t=TRANSACTION_ID';
document.body.appendChild(script);
};
var init = function() {
var div = document.getElementsByTagName('div');
View nvalt 2.2b crash
Process: nvALT [1471]
Path: /Applications/nvALT.app/Contents/MacOS/nvALT
Identifier: net.elasticthreads.nv
Version: 2.2 (120)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: nvALT [1471]
User ID: 501
Date/Time: 2016-09-29 11:56:23.590 -0500
View default-ceilometer-pipeline.yaml
sources:
- name: meter_source
interval: 600
meters:
- "*"
sinks:
- meter_sink
- name: cpu_source
interval: 600
meters:
View query_object_realization.rb
# app/models/article.rb
class Article < ActiveRecord::Base
scope :by_title, ->(direction) { order title: direction }
scope :by_date, ->(direction) { order created_at: direction }
scope :by_author, ->(direction) { order "users.full_name #{direction}" }
end
# app/queries/ordered_articles_query.rb
class OrderedArticlesQuery
SORT_OPTIONS = %w(by_date by_title by_author).freeze
View CoreGraphicsExtension.swift
//Copyright
//https://habrahabr.ru/post/271647/
import Foundation
// Summ and Substraction of Vectors
func +(left: CGPoint, right: CGPoint)->CGPoint{
return CGPoint(x: left.x+right.x, y: left.y+right.y)
}
prefix func -(right: CGPoint)->CGPoint{