View main.cpp
| #include <SFML/Graphics.hpp> | |
| #include <iostream> | |
| int main() | |
| { | |
| // Create the main window | |
| sf::RenderWindow app(sf::VideoMode(800, 600), "SFML window"); | |
| // Load a sprite to display | |
| sf::Texture texture; |
View gist:2a8ed721e84da14519afe4a0c3530a50
| digismarttech.com,2016-01-16 01:03:32,2018-04-13 06:53:17,pingly|riskiq|virustotal, | |
| ns3.digismarttech.com,2016-01-04 16:14:19,2018-04-12 21:11:49,riskiq|virustotal, | |
| tcser.digismarttech.com,2018-04-11 22:31:42,2018-04-11 22:31:42,riskiq, | |
| www.digismarttech.com,2016-01-05 20:08:04,2018-04-11 17:51:01,riskiq, | |
| mail4.digismarttech.com,2017-09-09 09:22:49,2018-04-03 14:27:35,riskiq, | |
| korbinkameron.digismarttech.com,2016-12-26 12:45:47,2018-04-03 13:39:14,riskiq, | |
| mail3.digismarttech.com,2016-01-29 08:44:08,2018-02-07 01:51:58,riskiq, | |
| marketing.digismarttech.com,2017-09-23 02:48:59,2018-01-30 22:07:58,riskiq, | |
| api.digismarttech.com,2018-01-07 02:05:35,2018-01-07 02:05:35,riskiq, | |
| _adsp._domainkey.digismarttech.com,2017-12-01 18:20:52,2017-12-02 11:51:08,riskiq, |
View gist:72f23a75e04d28cfc5723dded2c9696d
| 04-13 08:53:07.604 1615 1624 F libc : Fatal signal 11 (SIGSEGV), code 1, fault addr 0x10 in tid 1624 (FinalizerDaemon), pid 1615 (system_server) | |
| 04-13 08:53:07.626 3587 5580 I Places : ?: PlacesBleScanner stop() | |
| 04-13 08:53:07.628 3587 3587 I BeaconBle: Scan canceled successfully. | |
| 04-13 08:53:07.652 3587 5580 I PlaceInferenceEngine: [anon] Changed inference mode: 0 | |
| 04-13 08:53:07.665 3587 5580 I PlaceInferenceEngine: [anon] Changed inference mode: 0 | |
| 04-13 08:53:07.709 7324 7324 I crash_dump64: obtaining output fd from tombstoned, type: kDebuggerdTombstone | |
| 04-13 08:53:07.710 1175 1175 I /system/bin/tombstoned: received crash request for pid 1615 | |
| 04-13 08:53:07.715 7324 7324 I crash_dump64: performing dump of process 1615 (target tid = 1624) | |
| 04-13 08:53:07.716 7324 7324 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** | |
| 04-13 08:53:07.716 7324 7324 F DEBUG : Build fingerprint: 'razer/cheryl/cheryl:8.1.0/OPM1.171019.011/yghazi04121402:userdebug/test-keys' |
View rotation_mean.cpp
| MEulerRotation rotationAverage(const std::vector<MQuaternion>& values) | |
| { | |
| if (values.empty()) return MEulerRotation::identity; | |
| const MQuaternion sum = std::accumulate(values.begin(), values.end(), MQuaternion::identity, | |
| [](const MQuaternion& a, const MQuaternion& b) | |
| { | |
| return a + b.log(); | |
| }); | |
| const MQuaternion average(sum.x / values.size(), sum.y / values.size(), sum.z / values.size(), sum.w / values.size()); | |
| return average.exp().asEulerRotation(); |
View qs.js
| var queryParams = window.location.search.substr(1).split('&').reduce(function (q, query) { | |
| var chunks = query.split('='); | |
| var key = chunks[0]; | |
| var value = chunks[1]; | |
| return (q[key] = value, q); | |
| }, {}); |
View socket-angular-factory.js
| //add socket-io-client.js before this file | |
| myApp.factory('socket', function($rootScope) { | |
| var socket = io.connect(); | |
| return { | |
| on: function(eventName, callback) { | |
| socket.on(eventName, function() { | |
| var args = arguments; | |
| $rootScope.$apply(function() { | |
| callback.apply(socket, args); |
View flatten.rb
| class Array | |
| def self.flatten_this | |
| raise NoMethodError !self.is_a?(Array) | |
| result = [] | |
| array.each do |element| | |
| element.each {|value| result << value} | |
| end | |
| results | |
| end | |
| end |
View .bashrc
| git_branch() { | |
| git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/[\1]/' | |
| } | |
| # NOTE: The dollar sign ($) has to be escaped so that the above function is executed every time the prompt is shown | |
| # like this: \$(git_branch) | |
| export PS1="\[\e]0;\w\a\]\n\[\e[36m\]CygWin:\[\e[33m\]\w\[\e[0m\] \[\e[45m\]\[\e[1m\]\$(git_branch)\[\e[0m\]\n$ " |
View functions.php
| <?php // Do not include this if already open! | |
| /** | |
| * Code goes in theme functions.php. | |
| */ | |
| add_filter( 'gettext', 'custom_order_button_strings', 20 ); | |
| /** | |
| * Change order button text strings. | |
| * |
View wfh-reasons.json
| [ | |
| { | |
| "text": "Cat died after eating marijuna" | |
| }, | |
| { | |
| "text": "Ate too much spicy food last night" | |
| }, | |
| { | |
| "text": "Hard luck finding a cab" | |
| } |
NewerOlder