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
package contractor | |
import ( | |
"utils/logger" | |
"utils/crypt" | |
helpfullObject "helpfull/objects" | |
"app/components/contractor/licenses" | |
"app/models" | |
"app/events" |
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 | |
/** | |
* Widgets Tag Processor (sample) | |
* | |
*/ | |
class SampleWidget extends TagProcessor | |
{ | |
/** |
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
# Copyright @ Bjarte Johansen 2012 | |
# License: http://ljos.mit-license.org/ | |
from AppKit import NSApplication, NSApp, NSWorkspace | |
from Foundation import NSObject, NSLog | |
from PyObjCTools import AppHelper | |
from Quartz import kCGWindowListOptionOnScreenOnly, kCGNullWindowID, CGWindowListCopyWindowInfo | |
class AppDelegate(NSObject): | |
def applicationDidFinishLaunching_(self, notification): |
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 a = ['','одной ','двух ','трех ','четырех ', 'пяти ','шести ','семи ','восьми ','девяти ','десяти ','одиннадацти ','двенадцати ','тринадцати ','четырнадцати ','пятьнадцати ','шестьнадцати ','семьнадцати ','восемьнадцати ','девятьнадцати ']; | |
var tenthsNums = ['', '', 'двадцати','тридцати','сорока','пятидесяти', 'шестидесяти','семидесяти','восьмидесяти','девяноста']; | |
var hundredsNums = ['', 'ста', 'двухсот', "трехсот", "четырехсот", "пятисот", "шестисот", "семисот", "восемисот", "девятисот"]; | |
var hundreds = ["сотня", "сотни", "сотен"]; | |
var thousands = ["тысячи", "тысячи", "тысяч"]; | |
var million = ["миллиона", "миллионов", "миллионов"]; | |
var fTenths = ["десятых", "десятых", "десятых"]; |
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
.PHONY: build doc fmt test vendor_clean vendor_get vendor_update vet run stop | |
GOPATH := ${PWD}:${PWD}/vendor | |
APPPKG := fsv2 | |
CMDRUN := cmd/server | |
LOGPATH := ./bin/logs | |
LOGCURRENT := $(APPPKG) | |
PIDFILE := ./bin/$(APPPKG).run.pid |
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
package core | |
import ( | |
"encoding/json" | |
"net/http" | |
"io/ioutil" | |
) | |
type ResponseSuccess struct { | |
Code string `json:"code"` |
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
package core | |
import ( | |
"bytes" | |
"github.com/golang/glog" | |
"html/template" | |
"os" | |
"path/filepath" | |
) |
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
package internal | |
import ( | |
"fmt" | |
"regexp" | |
"strconv" | |
"strings" | |
) | |
type SqlTypeUpdate string |
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
SELECT * FROM classifer WHERE classifer_id IN (60,61,59) ORDER BY position(classifer_id::text in '60, 61, 59') |
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
.PHONY: deploy setup start stop | |
LASTBUILD := `cd ../builds && ls -1t | head -1` | |
STAMP := `date +%s` | |
BUILD := `date -u '+%Y_%m_%d-%I_%M_%S'` | |
PIDFILE := ./bin/app.pid | |
ifneq ("$(wildcard $(PIDFILE))","") | |
PID=$(shell cat $(PIDFILE)) | |
endif |
OlderNewer