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
$ cargo tree -p glutin # https://github.com/sfackler/cargo-tree | |
glutin v0.9.2 | |
├── lazy_static v0.2.8 | |
├── libc v0.2.31 | |
├── osmesa-sys v0.1.2 | |
│ └── shared_library v0.1.7 | |
│ ├── lazy_static v0.2.8 (*) | |
│ └── libc v0.2.31 (*) | |
├── shared_library v0.1.7 (*) |
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
[2017-09-09 13:09] [ALPM] upgraded linux-api-headers (4.10.1-1 -> 4.12.7-1) | |
[2017-09-09 13:09] [ALPM] upgraded glibc (2.25-7 -> 2.26-3) | |
[2017-09-09 13:09] [ALPM] upgraded gcc-libs (7.1.1-4 -> 7.2.0-2) | |
[2017-09-09 13:09] [ALPM] upgraded ncurses (6.0+20170527-1 -> 6.0+20170902-1) | |
[2017-09-09 13:09] [ALPM] upgraded android-tools (8.0.0_r4-1 -> 8.0.0_r4-2) | |
[2017-09-09 13:09] [ALPM] upgraded babl (0.1.24-1 -> 0.1.30-1) | |
[2017-09-09 13:09] [ALPM] upgraded binutils (2.28.0-4 -> 2.29.0-1) | |
[2017-09-09 13:09] [ALPM] upgraded p11-kit (0.23.7-1 -> 0.23.8-1) | |
[2017-09-09 13:09] [ALPM] upgraded expat (2.2.3-1 -> 2.2.4-1) | |
[2017-09-09 13:09] [ALPM] upgraded libxml2 (2.9.5rc2+0+g69936b12-1 -> 2.9.5+6+g07e227ed-1) |
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
name of display: :0 | |
display: :0 screen: 0 | |
direct rendering: Yes | |
server glx vendor string: SGI | |
server glx version string: 1.4 | |
server glx extensions: | |
GLX_ARB_create_context, GLX_ARB_create_context_profile, | |
GLX_ARB_create_context_robustness, GLX_ARB_fbconfig_float, | |
GLX_ARB_framebuffer_sRGB, GLX_ARB_multisample, | |
GLX_EXT_create_context_es2_profile, GLX_EXT_create_context_es_profile, |
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
#!/bin/fish | |
set cookie (nget -l 11 -- -S 2>&1 | grep Set-Cookie | sed -E 's/.+data=([a-zA-Z0-9%]+).*/\1/g' | urldecode) | |
echo "Cookie: $cookie" >&2 | |
set file (mktemp "XXXXXXXX.php") | |
set tmp_file (mktemp "XXXXXXXX.php") | |
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
;; Constants | |
;;; TICK: The time between renders | |
(setf TICK 0.5) | |
;; Symbols | |
(setq WALL '\#) | |
(setq PEMP '\ ) | |
(setq PDOT '\.) | |
(setq PILL '*) |
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> | |
int main(void); | |
// Yes I know they have the same value, but the name is different | |
#define _UNDEF ( (uint32_t) ~0 ) | |
#define _DONE ( (uint32_t) ~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
using System; | |
namespace Test { | |
class MainClass { | |
public static void Main(string[] args) { | |
Student charlie = new Student ("Charlie", 7); | |
charlie.WhoAreYou(); | |
} | |
} |
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
<?php | |
include 'StringPlus.inc'; | |
$string = new StringPlus("Hello World"); | |
print strval($string) . "\n"; | |
print "\n--- contains \n"; | |
print new StringPlus($string->contains("o W")) . "\t[true]\n"; | |
print new StringPlus($string->contains("o W", true)) . "\t[true]\n"; |
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
<?php | |
class StringPlus { | |
public $str = ''; | |
public function __construct($string) { | |
// Convert booleans | |
if ( $string === true ) { | |
$this->str = "true"; | |
} else if ($string === false) { | |
$this->str = "false"; |
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
#!/bin/bash | |
downloadurl=`curl -i "https://atom.io/download/deb" 2>/dev/null | grep "Location: " | cut -d' ' -f2 ` | |
version=`echo "$downloadurl" | grep -Eo "v([0-9]+\.){1,}[0-9]+"` | |
# Check if file exists | |
if [ -e .atom-version ]; then | |
curver=`cat .atom-version` | |
else | |
curver="unknown" |