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
| 3.11-4.1 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 'serialport' | |
| require 'colored' | |
| require 'ruby-progressbar' | |
| class Y201Grab | |
| def self.a2s(*arr) | |
| arr.pack 'c*' | |
| end |
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
| angular.module('fromNowFilter',[]).filter 'from_now', () -> | |
| (date) -> | |
| moment(date).fromNow() |
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
| /** | |
| * Basic AS3 VAST OVA Video Player Example | |
| * Released as open source under the BSD License | |
| * http://www.opensource.org/licenses/bsd-license.php | |
| * | |
| * hua.qiuh copied from dehash.com | |
| */ | |
| package { | |
| import com.apdevblog.events.video.VideoControlsEvent; |
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 com.alibaba.ad.vas.example | |
| { | |
| import flash.display.*; | |
| import flash.events.*; | |
| import flash.media.*; | |
| import flash.net.*; | |
| import flash.system.*; | |
| import com.alibaba.ad.vas.toolkit.AdManager; | |
| import com.alibaba.ad.vas.vast.model.AdUnit; |
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
| fun! MySys() | |
| return "mac" | |
| endfun | |
| set runtimepath=~/.vim_runtime,~/.vim_runtime/after,\$VIMRUNTIME | |
| source ~/.vim_runtime/vimrc | |
| "helptags ~/.vim_runtime/doc | |
| set guifont=Lucida\ Sans\ Typewriter\ Regular:h13 | |
| if has("gui_running") | |
| set guioptions-=T | |
| set t_Co=256 |
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
| # file: config/initialize/httparty.rb | |
| require 'httparty' | |
| module HTTParty | |
| class Request | |
| alias_method :_original_perform, :perform | |
| def perform(&block) | |
| payload = { | |
| method: http_method.const_get(:METHOD), | |
| url: uri |
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 ruby | |
| require 'socket' | |
| require 'net/http' | |
| require 'net/https' | |
| require 'open-uri' | |
| require 'logger' | |
| class AutoDNS | |
| PARAMS = { |
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
| # implementation of Array#flatten with ruby | |
| def flatten arr | |
| return arr unless arr.is_a? Array | |
| arr.reduce([]) do |out, item| | |
| out.push *flatten(item) | |
| end | |
| end | |