std::exceptionstd::bad_allocthrown by new on allocation failure.std::bad_castthrown by dynamic_cast when fails with a referenced type.std::bad_exceptionthrown when an exception type doesn't match any catch.std::bad_typeidthrown by typeid.std::logic_errorthrown by logic errors, represent problems in the internal logic of a program; in theory, these are preventable, and even detectable
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
| # Load in IPython and use as transfer rate | |
| # and storage capacity calculator. | |
| bytes = 8 | |
| bits = 24 | |
| width = 1280 | |
| height = 720 | |
| fps = 24 |
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
| import pygame | |
| class Time(object): | |
| def __init__(self, uiTimeStep): | |
| "Takes the time step in milliseconds as argument." | |
| self.uiTimeStep = uiTimeStep | |
| self.uiNewTime = 0 | |
| self.uiCurrentTime = 0 | |
| self.uiTimeAccumulator = 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
| <?php | |
| /** | |
| * UUID class | |
| * | |
| * The following class generates VALID RFC 4122 COMPLIANT | |
| * Universally Unique IDentifiers (UUID) version 3, 4 and 5. | |
| * | |
| * UUIDs generated validates using OSSP UUID Tool, and output | |
| * for named-based UUIDs are exactly the same. This is a pure | |
| * PHP implementation. |
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
| <?php | |
| function filterSign($var) | |
| { | |
| return strlen($var) < 2 ? false : true; | |
| } | |
| function getCombinations($values) | |
| { | |
| $perms = array(null); |
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
| <?php | |
| /** | |
| * This function generates a password salt as a string of x characters | |
| * ranging from a-zA-Z0-9. | |
| * | |
| * @param $max integer The number of characters in the string | |
| * @author AfroSoft <scripts@afrosoft.co.cc> | |
| */ | |
| function generate_salt($max = 40) |
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
| remove Lock = Caps_Lock | |
| keysym Caps_Lock = Escape |
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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <style-scheme version="1.0" name="Monokai"> | |
| <style name="Text" foreground="#f8f8f2" background="#272822"/> | |
| <style name="Link" foreground="#0055ff"/> | |
| <style name="Selection" foreground="#f8f8f2" background="#49483e"/> | |
| <style name="LineNumber" foreground="#888888" background="#232323"/> | |
| <style name="SearchResult" foreground="#000000" background="#ffe792"/> | |
| <style name="SearchScope" background="#222200"/> | |
| <style name="Parentheses" foreground="#ff5555" background="#333333"/> | |
| <style name="CurrentLine"/> |
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
| import QtQuick 2.2 | |
| Flickable { | |
| id: flickable | |
| anchors.fill: parent | |
| contentWidth: flickable.width * 2 | |
| contentHeight: 0 | |
| boundsBehavior: Flickable.StopAtBounds | |
| flickableDirection: Flickable.HorizontalFlick | |
| onMovementEnded: snapPage(this) |
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
| { | |
| "startUrl": "https://del.icio.us/<your username>?&page=[1-100]", | |
| "selectors": [{ | |
| "parentSelectors": ["_root"], | |
| "type": "SelectorElement", | |
| "multiple": true, | |
| "id": "bookmark", | |
| "selector": "div.articleThumbBlockOuter", | |
| "delay": "" | |
| }, { |
OlderNewer