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
| var fs = require('fs'), // file system access | |
| path = require('path'), | |
| less = require('less'); // less processor | |
| var options = { | |
| compress: true, | |
| optimization: 1, | |
| silent: 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
| function rangeCurl($url) { | |
| $headers = array( | |
| "Range: bytes=0-32768" | |
| ); | |
| $curl = curl_init($url); | |
| curl_setopt($curl, CURLOPT_HTTPHEADER, $headers); | |
| curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); | |
| return curl_exec($curl); | |
| curl_close($curl); | |
| } |
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
| # This module intentionally minimizes dependencies to mitigate breakage risk. | |
| # Subset of Syslog's numerical severity codes (RFC 3164, Table 2) | |
| SEVERITY = | |
| ERROR: 3 | |
| WARN: 4 | |
| INFO: 6 | |
| DEBUG: 7 | |
| # Configuration |
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
| .arrowgasm(@position: top, @size : "4px", @background-color : #88b7d5, @border-width: "2px", @border-color : #c2e1f5, @arrowClass : "arrow_box"){ | |
| (~".@{arrowClass}") { | |
| position: relative; | |
| background: @background-color; | |
| border: @size solid @border-color; | |
| } | |
| (~".@{arrowClass}:after"), (~".@{arrowClass}:before") { | |
| bottom: 100%; | |
| border: solid transparent; |
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
| // $ node compile.js | |
| var fs = require('fs'), // file system access | |
| path = require('path'), | |
| less = require('less'); // less processor | |
| var options = { | |
| compress: true, | |
| optimization: 1, | |
| silent: 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
| def startcss(): | |
| with lcd(r"%s/bin" % local_dir): | |
| local("nohup ./checkCss.sh &> /dev/null < /dev/null &") | |
| def stopcss(): | |
| local("ps -ef | grep \"checkCss\" | grep -v \"grep\" | awk '{print $2}' | xargs kill -9") |
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
| #!/bin/sh | |
| set -e | |
| # Ping FCGI server. Uses cgi-fcgi program from libfcgi library. | |
| # Retrieves the root path (/) from host:port specified on command line. | |
| if [ -z "$1" ] ; then | |
| echo "Usage: $0 host:port|path/to/socket" >&2 | |
| exit 1 | |
| fi |
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
| ........ | |
| C{ | |
| #include <syslog.h> | |
| #include <sys/time.h> | |
| #include <stdlib.h> | |
| #include <stdio.h> | |
| #include <string.h> | |
| }C | |
| sub vcl_recv { |
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
| convert image.png -resize 400x400 -format %c -dither None -quantize LAB -colors 1 -depth 8 histogram:info:- | sort -r |
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 countCSSRules() { | |
| var results = '', | |
| log = ''; | |
| if (!document.styleSheets) { | |
| return; | |
| } | |
| for (var i = 0; i < document.styleSheets.length; i++) { | |
| countSheet(document.styleSheets[i]); | |
| } | |
| function countSheet(sheet) { |