Skip to content

Instantly share code, notes, and snippets.

View Jorgelig's full-sized avatar
🎯
Focusing

Jorgelig Jorgelig

🎯
Focusing
View GitHub Profile
@Jorgelig
Jorgelig / index.html
Created August 12, 2013 17:01
A CodePen by Arbaoui Mehdi. Responsive lists and images - Responsive list like Dribbble. Full preview: http://cdpn.io/kmcvE
<div class="navbar navbar-inverse navbar-fixed-top">
<div class="container">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">Responsive Image</a>
<div class="nav-collapse collapse">
<ul class="nav navbar-nav">
@Jorgelig
Jorgelig / index.html
Created August 12, 2013 17:00
A CodePen by Sangmin, Shim. Cross-browser QRCode - QRCode.js is javascript library for making QRCode. QRCode.js supports Cross-browser with HTML5 Canvas and table tag in DOM. QRCode.js has no dependencies. Check it out http://davidshimjs.github.com/qrcodejs/
<input id="text" type="text" value="http://jindo.dev.naver.com/collie" style="width:80%" /><br />
<div id="qrcode"></div>
@Jorgelig
Jorgelig / index.html
Created August 12, 2013 17:00
A CodePen by Sangmin, Shim. Cross-browser QRCode - QRCode.js is javascript library for making QRCode. QRCode.js supports Cross-browser with HTML5 Canvas and table tag in DOM. QRCode.js has no dependencies. Check it out http://davidshimjs.github.com/qrcodejs/
<input id="text" type="text" value="http://jindo.dev.naver.com/collie" style="width:80%" /><br />
<div id="qrcode"></div>
@Jorgelig
Jorgelig / get-option-group.js
Created June 18, 2013 00:15
Get option group from arraylist
function getOptionGroup = function(jsonList){
var group;
var groups = {};
var indexGroup = 0;
var optionsGroup = [];
$.each(jsonList, function(index, item){
group = jsonList[index].group;
if(!(group in groups))
groups[group] = [];
var option = {id: jsonList[index].id, name: jsonList[index].name};
@Jorgelig
Jorgelig / ko-bindingHandler-toggleCollapseText.js
Created June 17, 2013 23:00
Custom bindings for toggle Collapse Text
<a class="accordion-toggle" data-toggle="collapse"
data-parent="#accordion2" href="#collapseOne"
data-bind="toggleCollapseText: {openedText: '@GetText("AdvancedOptions") &#x25B2;', closedText: '@GetText("AdvancedOptions") &#x25bc;'}">
@GetText("AdvancedOptions") &#x25B2;
</a>
@Jorgelig
Jorgelig / ko-bindingHandlers-script.js
Created June 17, 2013 22:57
Custom bindings for add script tag
(function($) {
ko.bindingHandlers.script = {
update: function (element, valueAccessor, allBindingsAccessor, viewModel, bindingContext) {
var options = ko.utils.unwrapObservable(valueAccessor());
if(options.path != ''){
$(element).html("<script src='" + options.path + options.parameters + "'></script>");
}
}
};
@Jorgelig
Jorgelig / getURLParameter.js
Created December 2, 2011 22:54
getURLParameter
//parameter or returns an empty string
jQuery.getURLParameter = function(name) {
return decodeURI(
(RegExp(name + '=' + '(.+?)(&|$)').exec(location.search) || [, ''])[1]
);
};
@Jorgelig
Jorgelig / LICENSE.txt
Created November 4, 2011 17:09 — forked from 140bytes/LICENSE.txt
140byt.es -- Click ↑↑ fork ↑↑ to play!
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
$.ajax({
type: "GET",
url: serviceUrl,
success: function (response) {
$("#" + nocnok_ad_container).html(response);
},
failure: function (error) {
alert('Error:\n' + JSON.stringify(error));
}
});
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If ((Request.UserAgent.IndexOf("AppleWebKit") > 0) Or (Request.UserAgent.IndexOf("Unknown") > 0) Or (Request.UserAgent.IndexOf("Chrome") > 0)) Then
Request.Browser.Adapters.Clear()
End If
End Sub