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
// Copyright 2015 the Dart project authors. All rights reserved. | |
// Use of this source code is governed by a BSD-style license | |
// that can be found in the LICENSE file. | |
void main() { | |
for (int i = 0; i < 4; i++) { | |
print('hello ${i}'); | |
} | |
} |
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
#!/usr/bin/env bash | |
# Port of https://github.com/tj/node-prune to bash | |
# Also, | |
# - fixed "*.ts" being overzealous and killing .d.ts files | |
# - added some more file types from https://github.com/npm/npm/issues/5264#issuecomment-259800486 | |
# | |
# See also: | |
# - https://github.com/timoxley/cruft | |
# - https://yarnpkg.com/en/docs/cli/autoclean | |
# - https://github.com/ModClean/modclean |
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
#!/usr/bin/env bash | |
# Port of https://github.com/tj/node-prune to bash | |
# Also, | |
# - fixed "*.ts" being overzealous and killing .d.ts files | |
# - added some more file types from https://github.com/npm/npm/issues/5264#issuecomment-259800486 | |
# | |
# See also: | |
# - https://github.com/timoxley/cruft | |
# - https://yarnpkg.com/en/docs/cli/autoclean | |
# - https://github.com/ModClean/modclean |
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
####################################################################################################################### | |
# | |
# Purpose: Bash script to fix a few elements of the default Dokku script with running correctly on Debian Wheezy | |
# Author: Shirkey <[email protected]> | |
# License: MIT | |
# Tested with: | |
# * Linux 3.2.0-4-amd64 #1 SMP Debian 3.2.41-2+deb7u2 x86_64 GNU/Linux | |
# * v0.2.1 of Dokku installer script | |
# | |
####################################################################################################################### |
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
# | |
# Copyright (C) 2011-2013 Michael Vogt <[email protected]> | |
# | |
# This file is part of PixelController. | |
# | |
# PixelController is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. | |
# |
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
public ActionForward execute(ActionMapping mapping, ActionForm inForm, HttpServletRequest request, HttpServletResponse response) throws Exception { | |
log.debug("hello ajax!"); | |
DatatablesCriterias dc = DatatablesCriterias.getFromRequest(request); | |
log.debug(dc); | |
AssettypeManager mgr = (AssettypeManager) getBean("assettypeManager"); | |
List<AssetType> tmp = mgr.getAssetTypeList(); | |
List<AssetType> assetType = new ArrayList<AssetType>(); |
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
/* | |
Fireplace and Perlin Noise colour effect for a WS2801 addressable RGB LED strip. | |
By Ruben VC | |
Swapped R and B to compensate LPD8066 vs WS2801 in Fireplace code. | |
Based on fast and smooth random colour patterns for a LPD8066 addressable RGB LED strip. | |
By happyinmotion ([email protected]) | |
Simplex noise code taken from Stephen Carmody's Java implementation at: |
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
struts-action config (configure webservice): | |
<action | |
path="/show_xxx_XHR" | |
type="xxx.webapp.action.XXX_XHRAction" | |
name="dummyForm" | |
scope="request" | |
input="failure" | |
parameter="method" |
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 com.neophob.com; | |
import com.pi4j.io.i2c.I2CBus; | |
import com.pi4j.io.i2c.I2CDevice; | |
import com.pi4j.io.i2c.I2CFactory; | |
public class I2CExample { | |
/** |
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
// Wire Slave Receiver | |
// by Nicholas Zambetti <http://www.zambetti.com> | |
// Demonstrates use of the Wire library | |
// Receives data as an I2C/TWI slave device | |
// Refer to the "Wire Master Writer" example for use with this | |
// Created 29 March 2006 | |
// This example code is in the public domain. |
NewerOlder