This file contains hidden or 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 br.com.pingucostore.ui.activities; | |
| import android.content.Context; | |
| import android.content.Intent; | |
| import br.com.pingucostore.domain.entities.Cardapio; | |
| public class ActivityDispatcher { | |
| private Context context; | |
| public ActivityDispatcher(Context context) { |
This file contains hidden or 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 br.edu.fa7.exemplo.domain.entities; | |
| import java.io.Serializable; | |
| public class Entity implements Serializable { | |
| private long id; | |
| public Entity() { | |
| this.id = 0; | |
| } |
This file contains hidden or 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
| /* Drop all non-system stored procs */ | |
| DECLARE @name VARCHAR(128) | |
| DECLARE @SQL VARCHAR(254) | |
| SELECT @name = (SELECT TOP 1 [name] FROM sysobjects WHERE [type] = 'P' AND category = 0 ORDER BY [name]) | |
| WHILE @name is not null | |
| BEGIN | |
| SELECT @SQL = 'DROP PROCEDURE [dbo].[' + RTRIM(@name) +']' | |
| EXEC (@SQL) |
This file contains hidden or 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 sp_MSforeachtable 'ALTER TABLE ? NOCHECK CONSTRAINT ALL' | |
| exec sp_MSforeachtable 'ALTER TABLE ? DISABLE TRIGGER ALL' | |
| exec sp_MSforeachtable 'DELETE ?' | |
| exec sp_MSforeachtable 'ALTER TABLE ? CHECK CONSTRAINT ALL' | |
| exec sp_MSforeachtable 'ALTER TABLE ? ENABLE TRIGGER ALL' | |
| exec sp_MSforeachtable 'IF OBJECTPROPERTY(OBJECT_ID("?"), "TableHasIdentity") = 1 BEGIN DBCC CHECKIDENT ("?",RESEED,1) END' |
This file contains hidden or 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 Core.Data.NH | |
| { | |
| using System.Runtime.Remoting.Messaging; | |
| using System.Web; | |
| using NHibernate; | |
| using NHibernate.Context; | |
| using NHibernate.Engine; | |
| /// <summary> |
This file contains hidden or 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
| // -------------------------------------------------------------------------------------------------------------------- | |
| // Autor: rafaeluchoa | |
| // Data de criação: 19/11/2012 | |
| // -------------------------------------------------------------------------------------------------------------------- | |
| using System; | |
| using System.Web; | |
| using Core.Data.NH; | |
| using Microsoft.Practices.ServiceLocation; | |
| using Microsoft.Practices.Unity; |
This file contains hidden or 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 java.io.IOException; | |
| import java.io.InputStream; | |
| import java.lang.ref.SoftReference; | |
| import java.net.MalformedURLException; | |
| import java.net.URL; | |
| import java.util.Collections; | |
| import java.util.HashMap; | |
| import java.util.Map; | |
| import java.util.WeakHashMap; | |
| import java.util.concurrent.ExecutorService; |
This file contains hidden or 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
| sudo /Applications/Install\ OS\ X\ Mavericks.app/Contents/Resources/createinstallmedia --volume /Volumes/SuperDrive --applicationpath /Applications/Install\ OS\ X\ Mavericks.app --nointeraction |
This file contains hidden or 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
| // Insert code here to initialize your application | |
| NSOpenPanel* openDlg = [NSOpenPanel openPanel]; | |
| // Enable the selection of files in the dialog. | |
| [openDlg setCanChooseFiles:NO]; | |
| // Multiple files not allowed | |
| [openDlg setAllowsMultipleSelection:NO]; | |
OlderNewer