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
exec error: Error: Command failed: js: "/projects/theblacksmith/tsm/lib/tsm/compiler.ts", line 10: missing ; before statement | |
js: class Compiler | |
js: .............^ | |
js: "/projects/theblacksmith/tsm/lib/tsm/compiler.ts", line 12: missing ; before statement | |
js: public filePattern; | |
js: ...................^ | |
js: "/projects/theblacksmith/tsm/lib/tsm/compiler.ts", line 14: missing ; before statement | |
js: private compiledModules = []; | |
js: ........................^ | |
js: "/projects/theblacksmith/tsm/lib/tsm/compiler.ts", line 15: missing ; before statement |
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
namespace Sparrow.Domain.ServiceOrder | |
{ | |
using System; | |
using System.Collections.Generic; | |
using Iesi.Collections.Generic; | |
using Jack.Core.Domain; | |
using Jack.Core.Envent; |
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
require 'colorize' | |
module Liftr | |
module Importers | |
class ImportOnce < ::Sass::Importers::FilesystemFilesystem | |
attr_accessor :root, :debug_level, :staleness_check, :imported, :original_filename | |
# Creates a new filesystem importer that imports files relative to a given path. | |
# |
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 | |
// WARNING: This is the simplest possible example. It could be vastly improved | |
// by keeping the HamlPHP instance somewhere and, even more important, caching parser results | |
function render_partial($file, $data) { | |
$parser = new HamlPHP(new FileStorage('path/to/tmp/')); | |
$content = $parser->parseFile($file); | |
echo $parser->evaluateFile($content, $data); | |
} |
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
namespace Sparrow.Migrations | |
{ | |
using System; | |
using System.Data.Entity.Migrations; | |
using System.IO; | |
public abstract class ScriptMigration : DbMigration | |
{ | |
public string MigrationsDir | |
{ |
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 IValidationResult<Relationship> Update(Relationship relationship, IUser author) | |
{ | |
repository.Attach(relationship); | |
relationship.UpdaterId = author.Id; | |
relationship.DeactivatedAt = DateTime.Now; | |
if (relationship.IsActive) | |
relationship.IsActive = false; |
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 IValidationResult<Relationship> Update(Relationship relationship, IUser author) | |
{ | |
repository.Attach(relationship); | |
relationship.UpdaterId = author.Id; | |
relationship.DeactivatedAt = DateTime.Now; | |
if (relationship.IsActive) | |
relationship.IsActive = false; |
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
// Instructions: | |
// 1. Navigate to you GitHub dashboard, either (https://github.com or https://github.com/organizations/{org_name} | |
// 2. Click on "All repositories" or "Show N more repositories" to show all your repos | |
// 3. Open Firebug console, and paste this script. Optionally, change the options below | |
// 4. Run and have fun | |
var options = { | |
origin: "all", // can be: source, fork or all | |
visibility: "all", // can be: public, private or all | |
showInNewWindow: true |
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
## | |
# the ImportOnce importer itself | |
# colorize is used for colorized terminal output, useful for debugging, but you can strip that off | |
## | |
require 'colorize' | |
module Sass | |
module Importers | |
class ImportOnce < Filesystem |
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
Image image = Image.FromStream(file.InputStream); | |
var path = Server.MapPath("~/App_Data/Files"); | |
image.Save(Path.Combine(path, Path.GetFileName("test.png")), System.Drawing.Imaging.ImageFormat.Png); |