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 ( | |
"sync" | |
"time" | |
) | |
// Job represents a function to be executed | |
type Job func() | |
// RateLimiter manages rate limiting for function executions | |
type RateLimiter struct { |
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
/** | |
* The namespace for jsb exclusive APIs, all APIs in this namespace should never be used in Web engine. | |
* So please check whether the running environment is native or not before any usage. | |
* @namespace | |
* @name jsb | |
* @example | |
* | |
* if(cc.sys.isNative) { | |
* cc.log(cc.fileUtils.fullPathForFilename("test.js")); | |
* } |
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
window._pjscMeta.scriptOutput = "out of l"; |
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 doc = context.document; | |
var app = NSApplication.sharedApplication(); | |
var appController = app.delegate(); | |
var colors = doc.documentData().assets().primitiveColors(); | |
// Convert MSArray into array | |
var mspalette = colors.array(); | |
// Convert MSColors into hex strings | |
var palette = []; |
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
package main | |
import ( | |
"database/sql" | |
"fmt" | |
"log" | |
"os" | |
_ "github.com/mattn/go-sqlite3" | |
) |
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
#!/usr/bin/env python2.7 | |
#coding=utf-8 | |
''' | |
Created on Sep 14, 2011 | |
@author: dawn | |
''' | |
import pexpect | |
import time | |
from subprocess import call |
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="Sublime Text 2"> | |
<!-- | |
By [email protected] | |
Improvements are welcome | |
Public Domain, 2014 | |
Navigate To: /Applications/LiteIDE.app/Contents/Resources/liteeditor | |
Create a new file with the content. | |
Restatr LiteIDE |
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
==> Installing subversion dependency: neon | |
==> Downloading http://www.webdav.org/neon/neon-0.29.6.tar.gz | |
Already downloaded: /Library/Caches/Homebrew/neon-0.29.6.tar.gz | |
/usr/bin/tar xf /Library/Caches/Homebrew/neon-0.29.6.tar.gz | |
==> ./configure --disable-debug --prefix=/usr/local/Cellar/neon/0.29.6 --enable-shared --disable-static --with-ssl | |
./configure --disable-debug --prefix=/usr/local/Cellar/neon/0.29.6 --enable-shared --disable-static --with-ssl | |
checking for a BSD-compatible install... /usr/bin/install -c | |
checking for gcc... cc | |
checking whether the C compiler works... yes | |
checking for C compiler default output file name... a.out |
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
/* | |
Use cache to reduce the call of fmt.Sprintf() to speed up the formating time to string operation | |
*/ | |
package timeutil | |
import ( | |
"fmt" | |
"time" | |
) |