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
| /** | |
| * Obfuscate a plaintext string with a simple rotation algorithm similar to | |
| * the rot13 cipher. | |
| * @param {[type]} key rotation index between 0 and n | |
| * @param {Number} n maximum char that will be affected by the algorithm | |
| * @return {[type]} obfuscated string | |
| */ | |
| String.prototype.obfs = function(key, n = 126) { | |
| // return String itself if the given parameters are invalid | |
| if (!(typeof(key) === 'number' && key % 1 === 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
| $(function () { | |
| "use strict"; | |
| // for better performance - to avoid searching in DOM | |
| var content = $('#content'); | |
| var input = $('#input'); | |
| var status = $('#status'); | |
| // my color assigned by the server | |
| var myColor = false; |
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 <GL/glut.h> | |
| #include <GL/gl.h> | |
| #include <GL/glu.h> | |
| #include <unistd.h> | |
| #include <cstdlib> | |
| #include <cstdio> | |
| #include <cmath> | |
| #include "camera.h" |
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
| require 'hogehoge' | |
| class Foo | |
| def bar | |
| puts "highlight test" | |
| end | |
| end |
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
| static void CreateIndexBuffer() | |
| { | |
| unsigned int Indices[] = { | |
| 0, 3, 1, | |
| 1, 3, 2, | |
| 2, 3, 0, | |
| 0, 1, 2 | |
| }; | |
| glGenBuffers(1, &IBO); |
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
| // Copyright (C) 2017 Basile Fraboni | |
| // Copyright (C) 2014 Ivan Kutskir | |
| // All Rights Reserved | |
| // You may use, distribute and modify this code under the | |
| // terms of the MIT license. For further details please refer | |
| // to : https://mit-license.org/ | |
| // | |
| //! | |
| //! \file blur.cpp |
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
| <div style="font-family: sans-serif;"> | |
| <? var data = valid(); ?> | |
| <form id="form" name="form"> | |
| <? if(Object.prototype.toString.call(data) === '[object Array]') { ?> | |
| <? for (var i = 0; i < data.length; i++) { ?> | |
| <? for (var j = 0; j < data[i].length; j++) { ?> | |
| <input type="checkbox" id="ch<?= '' + i + j ?>" name="ch<?= '' + i + j ?>" value="<?= data[i][j] ?>"><?= data[i][j] ?><br> | |
| <? } ?> | |
| <? } ?> | |
| <? } else { ?> |