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
#include <iostream> | |
#include <math.h> | |
using namespace std; | |
class Matris { | |
private: | |
double* objects; | |
int k; | |
int iterator = 0; |
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 check = function(o) { | |
return (o == null) ? null : o.constructor == Function ? o.name == "" ? "Callback" : "Class_" + o.name : o.constructor.name; | |
}; | |
// how can be different check and typeof | |
// checkfor check result typeof result | |
check(null); //null "object" | |
check(undefined); //null "undefined" | |
check(1); //"Number" "number" | |
check([]); //"Array" "object" |
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
Function.prototype.getParameters = function () { | |
return this._parameters || (this._parameters = /function *(?:.*?)\((.*?)\)/.exec(this + "")[1].split(/,/g).map(Function.prototype.call, String.prototype.trim)); | |
} |
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
// dependencies: md5 (for now :() | |
function a(unique,array){var tmp=[];return array.map(function(e){return d(unique,e);});} | |
function b(unique,array){var tmp=[];return array.map(function(e){return c(unique,e);});} | |
function c(x,y){var k=x^y;for(var i=0;i<x&0xF;i++)k=(k-x)^x;return k} | |
function d(x,y){var k=x^y;for(var i=0;i<x&0xF;i++)k=(k+x)^x; return k} | |
function en(x,y){return g(a(u(x),f(y)));} | |
function de(x,y){return g(b(u(x),f(y)));} | |
function f(a){return a.split("").map(function(x){return x.charCodeAt(0);})} | |
function g(a){return a.map(function(x){return String.fromCharCode(x);}).join("");} | |
function u(key){return md5(key).split("").map(function(e){var k=e.charCodeAt(0);if(k<97){return k-48;}else{return k-97+10;}}).reduce(function(a,b){return a+b;});} |
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
function k(){return Math.random()*255|0};setInterval(function(){Array.from(document.querySelectorAll("*")).forEach(function(e){e=e.style;e.backgroundColor="rgb("+k()+","+k()+","+k()+")";e.color="rgb("+k()+","+k()+","+k()+")";e.borderRadius="5px"})},250); | |
// lol |
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
Array.from(document.querySelectorAll("[type=radio]")).forEach(function(x){x.checked=true;}); | |
document.querySelector("[type=submit]").click() | |
// press f12 type this :) |
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
// HAPPY BIRTHDAY TO YOU :) | |
// co3moz (Dogan Derya) | |
// https://gist.github.com/co3moz/4abd3c0576100fff321f | |
#define CAKE_LENGTH 10. | |
#define CAKE_WIDTH 10. | |
#define CAKE_COLOR 0, i / CAKE_LENGTH, 1 | |
#define CANDLE_LENGTH 9. | |
#define CANDLE_COUNT 9. | |
#define CANDLE_COLOR z / CANDLE_LENGTH * c(2., 2.), 0, 0 |
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
package com.co3moz.client; | |
import org.springframework.beans.factory.annotation.Autowired; | |
import org.springframework.stereotype.Repository; | |
/** | |
* BroadcastMessage (21 January 2016 14:27) | |
*/ | |
@Repository | |
public class Broadcast { |
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
//co3moz | |
#ifdef GL_ES | |
precision mediump float; | |
#endif | |
uniform float time; | |
uniform vec2 resolution; | |
vec2 center = vec2(0.5, 0.5); |
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
/** | |
* Adds extension to number | |
* @param a Number | |
* @param [n] default is "n" | |
* @returns {string} | |
* @example turkishExtension(40); // "40'tan" | |
* @example turkishExtension(40, ""); // "40'ta" | |
*/ | |
function turkishExtension(a, n) { | |
var lastDigit = 1 << Math.abs(a % 10); |
OlderNewer