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
products = Product.select().where( | |
Product.id << [161,162,163,164,165]).where( | |
~(Product.brand_name >> None) | |
) |
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 class MySettings | |
{ | |
public string Value1 { get; set; } | |
public string Value2 { get; set; } | |
} | |
public class Startup | |
{ | |
public void ConfigureService(IServiceCollection services) | |
{ |
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.Collections.Generic; | |
using System.Linq; | |
using Xunit; | |
using FluentAssertions; | |
using FakeItEasy; | |
namespace HipHopFlow | |
{ | |
public class FlowService |
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
import React, {Component} from 'react'; | |
import { connect } from 'react-redux'; | |
import { fetchListing } from '../../actions/ListingActions'; | |
@connect((store) => { | |
return { | |
listing: store.listing.listing, | |
}; | |
}) |
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
ssh -L 18080:localhost:8080 user@server | |
# ssh -L [localport]:localhost:[remoteport] user@server |
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(var context = new PlayContext()) | |
{ | |
context.Database.ExecuteSqlCommand(@" | |
EXEC sp_MSForEachTable 'ALTER TABLE ? NOCHECK CONSTRAINT ALL'; | |
EXEC sp_MSForEachTable 'IF OBJECT_ID(''?'') NOT IN (OBJECT_ID(''[dbo].[__MigrationHistory]'')) DELETE FROM ?'; | |
EXEC sp_MSForEachTable 'ALTER TABLE ? WITH CHECK CHECK CONSTRAINT ALL'; | |
"); | |
} |
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 class Product | |
{ | |
public int Id { get; set; } | |
public string Name { get; set; } | |
} |
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
Show hidden characters
{ | |
"atomic_save": 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
Windows Registry Editor Version 5.00 | |
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Reliability] | |
"ShutdownReasonOn"=dword:00000000 |
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
mklink c:\cygwin\home\shaun\.VirtualBox c:\Users\shaun\.VirtualBox | |
mklink "c:\cygwin\home\shaun\VirtualBox VMs" "c:\Users\shaun\VirtualBox VMs" | |
or | |
mklink c:\cygwin64\home\shaun\.VirtualBox c:\Users\shaun\.VirtualBox | |
mklink "c:\cygwin64\home\shaun\VirtualBox VMs" "c:\Users\shaun\VirtualBox VMs" |
NewerOlder