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
/// <summary> | |
/// This is the Book class, it represents a book. | |
/// </summary> | |
[DataContract, Serializable, XmlRoot("book")] | |
public class Book | |
{ | |
#region Properties | |
[DataMember, XmlAttribute("isbn")] | |
public string Isbn { get; set; } | |
[DataMember, XmlAttribute("title")] |
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
<conf | |
host="localhost" | |
init="northwind" | |
auth="false" | |
user="foo" | |
pass="bar" | |
file="northwind.mdf" | |
/> |
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
using System; | |
using System.ComponentModel.DataAnnotations; | |
namespace NanoTaboada.GitHub.Gist | |
{ | |
public class Book | |
{ | |
[Key] | |
public string Isbn { get; set; } |
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
#!/bin/bash | |
if [ -e 'filelist' ] | |
then | |
files=`cat filelist` | |
for file in $files | |
do | |
if [ -e $file ] | |
then | |
tar czf backup.tar.gz $file |
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
{ | |
"books":[ | |
{ | |
"isbn":"9781593279509", | |
"title":"Eloquent JavaScript, Third Edition", | |
"subtitle":"A Modern Introduction to Programming", | |
"author":"Marijn Haverbeke", | |
"published":"2018-12-04T00:00:00.000Z", | |
"publisher":"No Starch Press", | |
"pages":472, |
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
#!/bin/sh | |
# ---------------------------------------------------------------------------- # | |
# Filename: .git/hooks/commit-msg # | |
# Description: Git commit-msg hook that prevents committing with a comment # | |
# that does not include a Jira key. # | |
# Created by: Nano Taboada <[email protected]> # | |
# Version: 0.1.0 # | |
# License: http://opensource.org/licenses/MIT # | |
# Last updated: Jun 30, 2015 # |
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
#!/bin/sh | |
# ---------------------------------------------------------------------------- # | |
# Filename: .git/hooks/pre-commit # | |
# Description: Git pre-commit hook that prevents committing when the autor # | |
# name is unknown, null, empty or whitespace. # | |
# Created by: Nano Taboada <[email protected]> # | |
# Version: 0.1.0 # | |
# License: http://opensource.org/licenses/MIT # | |
# Last updated: Jun 30, 2015 # |
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
#!/bin/sh | |
# ---------------------------------------------------------------------------- # | |
# Filename: .git/hooks/pre-push # | |
# Description: Git pre-push hook that prevents pushing directly to master # | |
# branch # | |
# Created by: Nano Taboada <[email protected]> # | |
# Version: 0.1.0 # | |
# License: http://opensource.org/licenses/MIT # | |
# Last updated: Jun 30, 2015 # |
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
BEGIN TRANSACTION; | |
DROP TABLE IF EXISTS "albums"; | |
CREATE TABLE IF NOT EXISTS "albums" ( | |
"rank" INTEGER NOT NULL, | |
"album" TEXT NOT NULL, | |
"artist" TEXT NOT NULL, | |
"label" TEXT NOT NULL, | |
"year" INTEGER NOT NULL, | |
PRIMARY KEY("rank") | |
); |
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
[ | |
{ | |
"album": "Whats Going On", | |
"artist": "Marvin Gaye", | |
"label": "Tamla/Motown", | |
"rank": 1, | |
"year": 1971 | |
}, | |
{ | |
"album": "Pet Sounds", |
OlderNewer