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
class Object | |
def blank? | |
self.nil? | |
end | |
def present? | |
!blank? | |
end | |
end |
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
#include <iostream> | |
#include <conio.h> // В этой библиотеке "живет" - getch(); | |
/* | |
Исходные данные | |
--------------- | |
Сумма вклада | |
Срок вклада, в месяцах | |
*/ |
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
#include <iostream> | |
#include <conio.h> | |
using namespace std; | |
int main() | |
{ | |
int period, interest; | |
float interest_in_period, amount, income; |
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
.header | |
@extend .container | |
.brand | |
float: left | |
span | |
+text-hide | |
.links |
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
<object id="videoplayer354" type="application/x-shockwave-flash" data="http://localhost:3000/player/uppod.swf" width="500" height="375"> | |
<param name="bgcolor" value="#3333" /> | |
<param name="allowFullScreen" value="true" /> | |
<param name="allowScriptAccess" value="always" /> | |
<param name="movie" value="http://localhost:3000/player/uppod.swf" /> | |
<param name="flashvars" value="comment=Video&st=http://localhost:3000/player/st/video205-524.txt&file=http://localhost:3000/video.mp4" /> | |
</object> |
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
search = () -> | |
textboxs = $(".live_filter").add $("[data-live-cnt]") | |
textboxs.keyup -> | |
textbox = $(this) | |
cnt = textbox.attr("data-live-cnt") | |
cnt = "" unless cnt? | |
pattern = $.trim textbox.val() |
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
window.log = (obj) -> if window.console then window.console.log(obj) | |
// usage | |
// var x = 42; | |
// var map = function (x) { return eval(x); }; | |
// alert(f("x $x", map)); | |
window.f = function (s, map) { | |
return s.replace(/\$(\w+)/g, function (dummy, v) { return map(v);} ); | |
}; |
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
public static class StringExtentions | |
{ | |
// example "Controls_Admin_AdminDocument_EditDocumentList load IsPostBack={0}".debug(IsPostBack); | |
public static void debug(this string str, params object[] args) | |
{ | |
var args_json = args.Select(a => a.json()).ToArray(); | |
Console.WriteLine("********************************"); | |
Console.WriteLine(str.f(args_json)); | |
Console.WriteLine("********************************"); |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Web.Mvc; | |
using System.Web.Mvc.Html; | |
using System.Web; | |
using System.IO; | |
namespace Msa.Common |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using NUnit.Framework; | |
using MongoDB.Driver; | |
using System.Web.Mvc; | |
using System.IO; | |
using MongoDB.Driver.GridFS; |
OlderNewer