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
INSERT INTO `feature_flags` (`id`, `name`, `code`, `dependencies`, `conflicts`, `is_active`, `modified`) | |
VALUES | |
(UUID(), 'ZinHome.TopMenu', NULL, NULL, NULL, 1, now()); |
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
/* | |
html5doctor.com Reset Stylesheet | |
v1.6.1 | |
Last Updated: 2010-09-17 | |
Author: Richard Clark - http://richclarkdesign.com | |
Twitter: @rich_clark | |
*/ | |
html, body, div, span, object, iframe, | |
h1, h2, h3, h4, h5, h6, p, blockquote, pre, |
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
//let's a make a housing listing app and a directive that repeats a template component | |
var app = angular.module('exampleApp', []); | |
app.controller('myCtrl', function($scope) { | |
$scope.listings = [ | |
{ | |
title: 'Quiet Apartment', | |
imgPath: 'images/apt.jpg', | |
desc: 'This is a description.' |
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
<script> | |
$(document).ready( function() { | |
var fixedElement = $('.fixedElement'); | |
$(window).resize(function(){ | |
$(menu).remove(); | |
$('body').append(fixedElement); | |
}); | |
}); | |
</script> |
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
$url = "http://www.example.org/"; | |
$curl = curl_init(); | |
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); | |
curl_setopt($curl, CURLOPT_URL, $url); | |
$data = curl_exec($curl); | |
curl_close($curl); |
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
$.ajax({ | |
type: 'POST', | |
url: 'http://kyleschaeffer.com/feed/', | |
data: { postVar1: 'theValue1', postVar2: 'theValue2' }, | |
beforeSend:function(){ | |
// this is where we append a loading image | |
$('#ajax-panel').html('<div class="loading"><img src="/images/loading.gif" alt="Loading..." /></div>'); | |
}, | |
success:function(data){ | |
// successful request; do something with the 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
<script type="text/javascript"> | |
function prepareForm() { | |
var form = document.getElementsByTagName('form'); | |
form[0].addEventListener('submit', function(e) { | |
e.preventDefault(); | |
var queryString = '?'; | |
document.getElementById('output').innerHTML = ""; | |
//contains an array of all <input> elements |
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
-(void)showDatabaseContents { | |
NSArray *path = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); | |
NSString *documentsDirectory = [path objectAtIndex:0]; | |
NSString *pathToDB = [documentsDirectory stringByAppendingString:@"/classes.sqlite"]; | |
// NSString *pathToDB = [[NSBundle mainBundle] pathForResource:@"classes" ofType:@"sqlite"]; | |
FMDatabase *db = [FMDatabase databaseWithPath:pathToDB]; | |
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
@charset "UTF-8"; | |
/*----------------------------- | |
IMPORT | |
------------------------------*/ | |
@import url("css/reset.css"); | |
/*----------------------------- | |
GLOBAL |