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 UIKit | |
/* Example of how to use it: | |
import UIKit | |
class ViewController: UIViewController { | |
@IBOutlet weak var label: UILabel! | |
@IBOutlet weak var textView: UITextView! |
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 UIKit | |
// How to use: | |
/* | |
let label = UILabel() | |
let textView = UITextView() | |
label.attributedText = .compose( | |
"Please go to ", | |
.link(label: "Google", |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<style type="text/css"> | |
.noscroll{ | |
overflow:hidden; | |
} | |
.mask{ | |
position:fixed; | |
overflow-y:scroll; |
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
var nextimage = "http://www.gbtags.com/gb/networks/uploadimgthumb/55d67b14-fb25-45e7-acc8-211a41047ef0.jpg"; | |
$(document).ready(function(){ | |
window.setTimeout(function(){ | |
var img = $("<img>").attr("src", nextimage).load(function(){ | |
$('div').append(img); | |
}); | |
}, 100); | |
}); |
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 ActionResult SearchIndex(string searchString) | |
{ | |
var movies = from m in db.Movies | |
select m; | |
if (!String.IsNullOrEmpty(searchString)) | |
{ | |
movies = movies.Where(s => s.Title.Contains(searchString)); | |
} | |
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
/*basic*/ | |
@keyframes myfirst | |
{ | |
from {background: red;} | |
to {background: yellow;} | |
} | |
@-webkit-keyframes myfirst /* Safari and Chrome */ | |
{ | |
from {background: red;} |
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
#left { | |
position: absolute; | |
left: 2%; | |
width: 22%; | |
top: 106px; | |
background-color: #ffffff; | |
} | |
#content { | |
position: absolute; | |
left: 25%; |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<style> | |
html,body{text-align: center;} | |
body{ | |
text-align: center; | |
margin: 0; | |
padding:0; | |
background-color: gray; |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="description" content="Free Web tutorials"> | |
<meta name="keywords" content="HTML,CSS,XML,JavaScript"> | |
<meta name="author" content="Ståle Refsnes"> | |
<meta charset="UTF-8"> | |
<style type="text/css"> | |
div{ | |
color:red; |
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
/* Effect 1: opacity */ | |
.grid.effect-1 li.animate { | |
-webkit-animation: fadeIn 0.65s ease forwards; | |
-moz-animation: fadeIn 0.65s ease forwards; | |
animation: fadeIn 0.65s ease forwards; | |
} | |
@-webkit-keyframes fadeIn { | |
to { opacity: 1; } | |
} |
NewerOlder