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
#include <iostream> | |
#include <vector> | |
using std::cout; | |
using std::cin; | |
template <class T> | |
struct Fun { | |
const T operator()(T x) { // funkcja | |
//return -5*x*x*x+8*x*x+3*x-1; |
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
<? | |
/* | |
Template Name: XML Template | |
*/ | |
$qry = $wpdb->get_results(" | |
SELECT SUBSTR( | |
CONCAT( | |
REPLACE( | |
REPLACE( | |
REPLACE( |
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
#include <iostream> | |
#include <vector> | |
#include <bitset> | |
using std::cout; | |
using std::vector; | |
using std::bitset; | |
void generator_lin (unsigned a, unsigned c, unsigned m, unsigned x0) { | |
vector <unsigned> przedzialy (10, 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
SELECT SUBSTR( | |
CONCAT( | |
REPLACE( | |
REPLACE( | |
REPLACE( | |
REPLACE(wpo.option_value,'%year%',date_format(wpp.post_date,'%Y')) | |
,'%monthnum%',date_format(wpp.post_date,'%m')) | |
,'%day%',date_format(wpp.post_date,'%d')) | |
,'%postname%',wpp.post_name ) | |
) |
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
// Internal recursive comparison function for `isEqual`. | |
var eq = function(a, b, aStack, bStack) { | |
// Identical objects are equal. `0 === -0`, but they aren't identical. | |
// See the Harmony `egal` proposal: http://wiki.ecmascript.org/doku.php?id=harmony:egal. | |
if (a === b) return a !== 0 || 1 / a == 1 / b; | |
// A strict comparison is necessary because `null == undefined`. | |
if (a == null || b == null) return a === b; | |
// Unwrap any wrapped objects. | |
if (a instanceof _) a = a._wrapped; | |
if (b instanceof _) b = b._wrapped; |
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
echo "clear && clear" > /usr/local/bin/cls && chmod +x /usr/local/bin/cls |
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
for (var i in window.console) { | |
if (typeof window.console[i] === "function") { | |
window.console[i] = function(){return!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
var showNotification = function (data) { | |
if (window.webkitNotifications) { | |
if (!webkitNotifications.checkPermission()) { | |
var notif = webkitNotifications.createNotification(data.icon, data.title, data.body); | |
notif.show(); | |
} else { | |
webkitNotifications.requestPermission(function () { | |
showNotification(data); | |
}); | |
} |
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
var routeModule = function (module) { | |
var routes = {}; | |
routes[module + '/*url'] = 'handleUrl'; | |
routes[module] = 'handleUrl'; | |
var ModuleRouter = Backbone.Router.extend({ | |
routes: routes, | |
handleUrl: function (url) { | |
require(['modules/' + module + '/' + module], function (myModule) { | |
url = url || ''; |
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
.font-smoothing (@val:antialiased) { | |
-webkit-font-smoothing: @val; | |
-moz-font-smoothing: @val; | |
font-smoothing: @val; | |
} |