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
$ = require 'nodobjc' | |
$.import 'Foundation' | |
$.NSAutoreleasePool 'new' | |
randChar = -> $(String.fromCharCode Math.round(Math.random() * 26) + 'a'.charCodeAt 0 ) | |
array = $.NSMutableArray 'new' | |
array 'addObject', randChar() for i in [1..10] |
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
* | |
!*.m | |
!Makefile |
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 <Foundation/Foundation.h> | |
#import <IOKit/usb/USBSpec.h> | |
#import "ORSSerialPort.h" | |
@interface ORSSerialPort (Attributes) | |
@property (nonatomic, readonly) NSDictionary *ioDeviceAttributes; | |
@property (nonatomic, readonly) NSNumber *vendorID; | |
@property (nonatomic, readonly) NSNumber *productID; |
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
html -> | |
head -> | |
title "ToDoNe" | |
link href: "/stylesheets/app.css", media: "all", rel: "stylesheet", type: "text/css" | |
for file in ['json2', 'jquery-1.5', 'underscore-1.1.6', 'backbone'] #, 'backbone-localstorage'] | |
script type: "text/javascript", src: "/javascripts/#{file}.js" | |
script src: "/javascripts/client.js" | |
body -> |
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
/* | |
* Copyright (c) 2010 Noah Sloan <http://noahsloan.com> | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy | |
* of this software and associated documentation files (the "Software"), to deal | |
* in the Software without restriction, including without limitation the rights | |
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
* copies of the Software, and to permit persons to whom the Software is | |
* furnished to do so, subject to the following conditions: | |
* |
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 AsciiTable = require('ascii-table') | |
var sys = require('sys') | |
var _ = require('underscore') | |
var exec = require('child_process').execSync | |
function err (message) { | |
console.info('error:' + message); | |
} | |
function puts(error, stdout, stderr) { | |
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
#include <ESP8266WiFi.h> | |
const char* ssid = "yourSsid"; | |
const char* password = "yourPassword"; | |
String readStrings = ""; // สร้างตัวแปรมาเก็บข้อมูลค่าที่ส่งเข้ามา | |
int pin1 = 14; //กำหนด GPIO 14 (D5) | |
int pin2 = 12; //กำหนด GPIO 12 (D6) | |
int pin3 = 13; //กำหนด GPIO 13 (D7) |
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 zsh | |
# Print usage information if there are no arguments on the command line. | |
[ "$#" = "0" ] && | |
echo 'Usage: via-ssh.sh [ -v ] [ -d ] [USER@]SERVER[:PORT]' && exit 1 | |
# Process the command line parameters. | |
while [ "$#" != '0' ] ; do | |
case "$1" in | |
-v) VERBOSE=1 ; shift ;; |
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 | |
######################################################################## | |
# | |
# Usage: via-ssh.sh [-v] [-d] [USER@]SERVER[:PORT] | |
# | |
# -v Provide verbose output. | |
# -d Send all UDP on the DNS port 53 to 127.0.0.1. | |
# USER User name to use for SSH; default is current user. | |
# SERVER Server to use for SSH. |
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
diff -rup coreutils-8.23/src/copy.c coreutils-8.23-patched/src/copy.c | |
--- coreutils-8.23/src/copy.c 2014-07-13 16:09:52.000000000 -0600 | |
+++ coreutils-8.23-patched/src/copy.c 2015-04-11 16:15:00.000000000 -0600 | |
@@ -113,6 +113,71 @@ struct dir_list | |
dev_t dev; | |
}; | |
+struct progress_status { | |
+ int iCountDown; | |
+ char ** cProgressField; |