View NTP.ino
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 <time.h> | |
#include <TZ.h> | |
#include <ESP8266WiFi.h> | |
#include <StackThunk.h> | |
#include <WiFiClientSecure.h> | |
#include <ESP8266HTTPClient.h> | |
WiFiClientSecure client; | |
static const char digicert[] = "-----BEGIN CERTIFICATE-----\n" | |
"MIIHQDCCBiigAwIBAgIQD9B43Ujxor1NDyupa2A4/jANBgkqhkiG9w0BAQsFADBN\n" |
View civicrm_8.x-master.patch
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
diff --git a/civicrm.install b/civicrm.install | |
index a6bbc99..2531b4c 100644 | |
--- a/civicrm.install | |
+++ b/civicrm.install | |
@@ -60,6 +60,7 @@ function civicrm_install() { | |
* @param $phase | |
*/ | |
function civicrm_requirements($phase) { | |
+# require_once DRUPAL_ROOT . "/modules/libraries/libraries.module"; | |
$requirements = array(); |
View hello.c
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
// Comes from http://developer.gimp.org/writing-a-plug-in/1/hello.c | |
#include <libgimp/gimp.h> | |
static void query (void); | |
static void run (const gchar *name, | |
gint nparams, | |
const GimpParam *param, | |
gint *nreturn_vals, | |
GimpParam **return_vals); |
View content
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
A-Z | |
=== | |
A brown fox jumped over a lazy dog. | |
a brown fox jumped over a lazy dog. | |
A brown fox jumped over a lazy dog. | |
A brown fox jumped over a lazy dog. | |
A brown fox jumped over a lazy dog. | |
029 |
View gist:8ec5735344dc561e7428
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
package main | |
import ( | |
"github.com/mikespook/golib/log" | |
"gopkg.in/gomail.v1" | |
) | |
func main() { | |
addr := "mail.awecent.com" | |
port := 25 |
View issue-60.phpt
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
--TEST-- | |
Check for Yaf_Controller::finalize | |
--SKIPIF-- | |
<?php if (!extension_loaded("yaf")) print "skip"; ?> | |
--FILE-- | |
<?php | |
$config = array( | |
"application" => array( | |
"directory" => realpath(dirname(__FILE__)), | |
"dispatcher" => array( |
View gomodule.go
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
package main | |
import ( | |
"fmt" | |
"time" | |
"github.com/qiniu/log" | |
"github.com/qiniu/py" | |
) | |
// ------------------------------------------------------------------- |
View gist:3003825
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 | |
// 获得图片的采样 | |
function samplingGif($filename) { | |
$sampling = array(); | |
$img = imagecreatefromgif($filename); | |
$size = getimagesize($filename); | |
$w = $size[0]; | |
$h = $size[1]; | |
for($x = 0; $x < $w; $x++) { | |
$sampling[$x] = array(); |
View notify.go
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
package main | |
import ( | |
"exp/inotify" | |
"log" | |
"os" | |
) | |
func init() { | |
f, _ := os.OpenFile("notify.log", os.O_CREATE|os.O_APPEND|os.O_RDWR, 0644) |
View mymysql-foobar.go
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
package main | |
import ( | |
"log" | |
"database/sql" | |
"encoding/json" | |
_ "github.com/ziutek/mymysql/godrv" | |
) | |
type Dict struct { |